litespeed服务器添加Typecho的rewrite规则

老牛  2012-08-16 18:55  阅读 157 views 次 评论 0 条
摘要:

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

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

规则如下:

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

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

历史上的今天:

本文地址:http://xiaohost.com/72.html
版权声明:本文为原创文章,版权归 老牛 所有,欢迎分享本文,转载请保留出处!

发表评论


表情