微笑着吃饭 发表于 2009-6-16 12:57:22

DZ论坛伪静态.htaccess写法

经测试,对Godadyy有效。
# 将 RewriteEngine 模式打开
      RewriteEngine On

      # 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
      RewriteBase /bbs

      # Rewrite 系统规则请勿修改
      RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
      RewriteRule ^forum-(+)-(+)\.html$ forumdisplay.php?fid=$1&page=$2
      RewriteRule ^thread-(+)-(+)-(+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
      RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
      RewriteRule ^tag-(.+)\.html$ tag.php?name=$1

cpuer 发表于 2009-6-16 13:25:56

回复 1# 的帖子

:handshake :handshake
页: [1]
查看完整版本: DZ论坛伪静态.htaccess写法