wordpress 和 Drupal 在 lighttpd下的rewrite(伪静态)规则
以前IDSOO一直运行在Apache下,这次服务商发邮件说CPU超限,于是继续折腾,转移到了Lighttpd下,下面是Druap在lighttpd下开启clean url的规则,附送wordpress的。
Drupal:
url.rewrite = (
“^/system/test/(.*)$” => “/index.php?q=system/test/$1″,
“^/system/test-clean-url/(.*)$” => “/index.php?q=system/test-clean-url/$1″,
“/rss.xml$” => “/index.php?q=rss.xml”,
“^/search/(.*)$” => “/index.php?q=search/$1″,
“^/([^.?]*)\?(.*)$” => “/index.php?q=$1&$2″,
“^/([^.?]*)$” => “/index.php?q=$1″,
)
Wordpress:
url.rewrite = (
“^/?$” => “/index.php”,
“^/(?.*)$” => “/index.php$1″,
“^/(wp-.+)$” => “$0″,
“^/([^.]+)/?$” => “/index.php?$1″,
)
