lighttpd服务器下wordpress完美rewrite重写规则

  • A+
所属分类:Lighttpd Wordpress
摘要

此规则为lighttpd服务器最完美的wordpress Rewrite规则。

此规则为lighttpd服务器最完美的wordpress Rewrite规则。

url.rewrite-once =(

"^/(.*)?/?files/$" => "index.php",

"^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2",

"^/(wp-.*)$" => "$1",

"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2",

"^/([_0-9a-zA-Z-]+/)?(.*.php)$" => "$2",

"(?.*)$" => "index.php$1",

"." => "index.php"

)

发表评论

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