首页 » LiteSpeed »

litespeed服务器添加Typecho的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

发表评论