找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1578|回复: 1

[Discuz! X] Lighttpd下Discuz 7.2伪静态规则

[复制链接]
发表于 2012-1-12 21:49:18 | 显示全部楼层 |阅读模式
Lighttpd下Discuz 7.2伪静态规则,经过本人亲测可用,贴出来供大家参考哈~~

安装在根目录下
  1. url.rewrite-once = (
  2. "^/archiver/((fid|tid)-[\w\-]+\.html)$" => "archiver/index.php?$1",
  3. "^/forum-([0-9]+)-([0-9]+)\.html$" => "forumdisplay.php?fid=$1&page=$2",
  4. "^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "viewthread.php?tid=$1&extra=page=$3&page=$2",
  5. "^/space-(username|uid)-(.+)\.html$" => "space.php?$1=$2",
  6. "^/tag-(.+)\.html$" => "tag.php?name=$1"
  7. )
复制代码
安装在子目录下(以子目录bbs为例)
  1. url.rewrite-once = (
  2. "^/bbs/archiver/((fid|tid)-[\w\-]+\.html)$" => "bbs/archiver/index.php?$1",
  3. "^/bbs/forum-([0-9]+)-([0-9]+)\.html$" => "bbs/forumdisplay.php?fid=$1&page=$2",
  4. "^/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "bbs/viewthread.php?tid=$1&extra=page=$3&page=$2",
  5. "^/bbs/space-(username|uid)-(.+)\.html$" => "bbs/space.php?$1=$2",
  6. "^/bbs/tag-(.+)\.html$" => "bbs/tag.php?name=$1"
  7. )
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|王牌互联

GMT+8, 2024-12-21 04:42 , Processed in 0.040183 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表