Lighttpd下Discuz 7.2伪静态规则,经过本人亲测可用,贴出来供大家参考哈~~
安装在根目录下- url.rewrite-once = (
- "^/archiver/((fid|tid)-[\w\-]+\.html)$" => "archiver/index.php?$1",
- "^/forum-([0-9]+)-([0-9]+)\.html$" => "forumdisplay.php?fid=$1&page=$2",
- "^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "viewthread.php?tid=$1&extra=page=$3&page=$2",
- "^/space-(username|uid)-(.+)\.html$" => "space.php?$1=$2",
- "^/tag-(.+)\.html$" => "tag.php?name=$1"
- )
复制代码 安装在子目录下(以子目录bbs为例)- url.rewrite-once = (
- "^/bbs/archiver/((fid|tid)-[\w\-]+\.html)$" => "bbs/archiver/index.php?$1",
- "^/bbs/forum-([0-9]+)-([0-9]+)\.html$" => "bbs/forumdisplay.php?fid=$1&page=$2",
- "^/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "bbs/viewthread.php?tid=$1&extra=page=$3&page=$2",
- "^/bbs/space-(username|uid)-(.+)\.html$" => "bbs/space.php?$1=$2",
- "^/bbs/tag-(.+)\.html$" => "bbs/tag.php?name=$1"
- )
复制代码 |