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安装在根目录。