首页 > BlueHost, Discuz, 互联网 > Bluehost虚拟主机Discuz伪静态设置

Bluehost虚拟主机Discuz伪静态设置

第一步.打开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

该日志未加标签。
  1. Velkan 三 28th, 2010 @ 17:38 | #1

    谢了,问题解决了

评论提交中, 请稍候...

留言

可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackbacks & Pingbacks ( 0 )
  1. 还没有 trackbacks