typecho启用rewrite的配置文件
apache:
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
nginx
server段
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
发表于 2018-05-10 14:54:00 并被添加「」标签,阅读量: 628 。
此处评论已关闭