litespeed服务器添加Typecho的rewrite规则

  • A+
所属分类:LiteSpeed
摘要

由于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

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: