typecho在litespeed下的rewrite规则

25次阅读

由于 typecho 程序 rewrite 判断有问题,在后台开启 rewrite 会提示服务器不支持,请忽略他的警告,继续设置。并且手动在.htaccess 文件添加 rewrite 规则。

1
2
3
4
5
6
7
8
9
10
11
12
13
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-httpd-php application/x-javascript
# END

规则借用了 wordpress 的,可以解决开启 rewrite 后 404 的问题。

正文完