libo 发表于 2021-3-27 09:12:03

Typecho设置伪静态

.htaccess文件配置
在网站根目录.htaccess文件中插入以下代码,若没有.htaccess文件,则可以新建一个。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1
</IfModule>

永久链接设置
后台--网站设置--永久链接--是否使用地址重写功能--启用
页: [1]
查看完整版本: Typecho设置伪静态