Typecho Apache Rewrite规则

环境是LAMP,网站根目录新建.htaccess文件:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Nginx的话,看这篇《Typecho Nginx Rewrite规则》

添加新评论