Nginx环境
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
Apache环境
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
Nginx环境
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
Apache环境
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
欢迎加入 Typecho 大家族