|
|

楼主 |
发表于 2010-12-28 12:31:46
|
显示全部楼层
底下這段是給 wordpress 3 用的 lighttpd 靜態規則- $HTTP["host"] == "www.site.com" {
- url.rewrite-final = (
-
- # Exclude some directories from rewriting
- "^/(wp-admin|wp-includes|wp-content|gallery2)/(.*)" => "$0",
-
- # Exclude .php sitemap files at root from rewriting
- "^/(.*.php)" => "$0",
- "^/sitemap.xml" => "$0" ,
-
- # Handle permalinks and feeds
- "^/(.*)$" => "/index.php/$1"
- )
- }
复制代码 |
|