Typecho利用.htaccess伪静态去掉index.php后缀
代码如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
然后在后台“设置” - “永久链接”里“启用地址重写功能”,可能会提示失败,仍然启用即可。
