Typecho伪静态Rewrite设置
在站点根目录写文件.htaccess文件,然后写入以下内容,并在设置中开启永久链接即可!
<IfModule mod_rewrite.c>
RewriteEngine On
#如果开启了HTTPS服务,使用以下两行内容
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R=301]
#开启伪静态
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>