WordPress在lighttpd里的rewrite规则
url.rewrite = (
"^/?$" => "/index.php",
"^/(?.*)$" => "/index.php$1",
"^/(wp-.+)$" => "$0",
"^/([^.]+)/?$" => "/index.php?$1",
)
另外一个写法
$HTTP["host"] =~ “mingshi\.info” {
var.wpdir = “/”
url.rewrite-once = (
“^” + wpdir + “(wp-.+).*/?” => “$0″,
“^” + wpdir + “(sitemap.xml)” => “$0″,
“^” + wpdir + “(xmlrpc.php)” => “$0″,
“^” + wpdir + “keyword/([A-Za-z_0-9-])/?$” => wpdir + “index.php?keyword=$1″,
“^” + wpdir + “(.+)/?$” => wpdir + “index.php/$1″
)}
wordpress安装在根目录。
Leave a Reply
Random Posts
Tags
Recent Comments
- 流云雨蝶 on 100 Best Classics Two
- can on 100 Best Maria Callas 卡拉丝名唱百分百
- Passioning on Lisa Ono 小野丽莎 – Dans Mon Île 左岸香颂
- tzewei on 《US Billboard 2009 Year-End Hot 100 Songs》(2009年美国公告牌流行金榜百首)
- Lord on 100 Best Encores