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

老牛  2012-01-18 21:51  阅读 160 views 次 评论 0 条
摘要:

此规则为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
版权声明:本文为原创文章,版权归 老牛 所有,欢迎分享本文,转载请保留出处!

发表评论


表情