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

<pre>url.rewrite-once =(

"^/(.*)?/?files/$" =&gt; "index.php",

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

"^/(wp-.*)$" =&gt; "$1",

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

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

"(?.*)$" =&gt; "index.php$1",

"." =&gt; "index.php"

)</pre>