Typecho
代码语言:javascript复制if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
代码语言:javascript复制<IfModule mod_rewrite.c>
RewriteEngine On
# 下面是在根目录,文件夹要修改路径
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>