25

Bluehost虚拟主机Discuz伪静态设置

分类:BlueHost, Discuz, 互联网 | 点击量1141次 | 给我留言

第一步.打开RewriteEngine 模式,编辑论坛根目录下的.htaccess文件使之与以下内容一致(*以下规则为Discuz! 6.1.0版)。

创建/编辑一个.htaccess放在论坛的根目录。在.htaccess中输入一下代码。(用记事本创建.htaccess,注意.htaccess文件没有后缀)

# 将 RewriteEngine 模式打开
RewriteEngine on

# 修改论坛目录地址
RewriteBase /

# Rewrite 系统规则请勿修改
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.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

第二步.在Discuz后台根据自己的需要做相应的设置调整即可。
discuz

演示:江信社区 bbs.jxcia.net

该日志未加标签。

相关日志

  • 标签 : 
  • 原文链接 : http://www.longlan.net/longlan/281
  • 转载原创文章请注明 : 华丽的忧伤
  • ??? : Google?? ??ViVi 365Key?? ???? ?? POCO?? ???? YouNote?? ???? ??? igooi?? I2Key?? ???? ????? Del.icio.us Yahoo?? ?? QQ??? ???Digg! ???Facebook!
  • 评论暂缺

    (Required)
    (Required, will not be published)