Lighttpd WordPress Rewrite(Linode Debian VPS)


在配置Linode Debian VPS中使用到的WordPress网页地址重写规则。 1.lighttpd的wordpress mu的子域名方式地址重写

$HTTP[“host”] =~ “it580\.com” { simple-vhost.default-host = “it580.com” server.error-handler-404 = “/index.php” url.rewrite-once = ( “^/(./)?files/$” => “/index.php”, “^/(./)?files/(.)” => “/wp-content/blogs.php?file=$2”, “^(/wp-admin/.)” => “$1”, “^/([_0-9a-zA-Z-]+/)?(wp-.)” => “/$2”, “^/([_0-9a-zA-Z-]+/)?(.\.php)$” => “/$2”, ) }

2.lighttpd的wordpress的地址重写

$HTTP[“host”] == “cindywm.com” { server.name = “cindywm.com” url.rewrite-final = ( “^/(wp-admin|wp-includes|wp-content|gallery2)/(.)” => “$0”, “^/(..php)” => “$0”, “^/(.*)$” => “/index.php/$1” ) }

PS:如果你觉得Linode VPS不错,可以点击这里Linode VPS购买链接直接购买,你购买后我会得到一点返利。

comments powered by Disqus