Web · 2012/02/10 0

kloxo下discuz论坛Lighttpd地址重写规则

url.rewrite = (
“^/topic-(.+)\.html$” => “/portal.php?mod=topic&topic=$1”,
“^/article-([0-9]+)\.html$” => “/portal.php?mod=article&articleid=$1”,
“^/forum-(\w+)-([0-9]+)\.html$” => “/forum.php?mod=forumdisplay&fid=$1&page=$2”,
“^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$” => “/forum.php?mod=viewthread&tid=$1&extra=page=$3&page=$2”,
“^/group-([0-9]+)-([0-9]+)\.html$” => “/forum.php?mod=group&fid=$1&page=$2”,
“^/space-(username|uid)-(.+)\.html$” => “/home.php?mod=space&$1=$2”,
“^/([a-z]+)-(.+)\.html$” => “/$1.php?rewrite=$2”
)

 

chenjie在使用ucvps时安装kloxo后使用dz论坛时测试无错

友情提醒,所有代码是填写在kloxo后台lighttpd地址重写规则。