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;
}

此处评论已关闭