Typecho Apache Rewrite规则
AI摘要:本文介绍了Typecho在Apache环境下的Rewrite规则配置方法,提供了完整的.htaccess文件代码,并提及Nginx环境可参考其他文章。
环境是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规则》。