首页 » Lighttpd »

lighttpd服务器下wordpress完美rewrite重写规则

此规则为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>

本文标签:

相关文章推荐

转载请保留,转载自:老牛博客
原文地址 http://xiaohost.com/57.html

发表评论