本帖最后由 cfanbo 于 2011-2-21 12:00 编辑
用的是lighttpd,发现"http://www.abc.com/thread-6016-1-1.html?fromuid=1"地址打不开,应该是正则的问题的,现在用的正则如下:- url.rewrite-once = (
- "^(.*)/topic-(.+)\.html$" =>"/portal.php?mod=topic&topic=$2",
- "^(.*)/article-([0-9]+)\.html$" =>"/portal.php?mod=view&aid=$2",
- "^(.*)/forum-(\w+)-([0-9]+)\.html$" =>"/forum.php?mod=forumdisplay&fid=$2&page=$3",
- "^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3",
- "^(.*)/group-([0-9]+)-([0-9]+)\.html$" =>"/forum.php?mod=group&fid=$2&page=$3",
- "^(.*)/space-(username|uid)-(.+)\.html$" =>"/home.php?mod=space&$2=$3",
- "^(.*)/([a-z]+)-(.+)\.html$" =>"/$2.php?rewrite=$3"
- )
复制代码
|