首先通过FTP在程序所在目录建立.htaccess 文件,用文本编辑器写入下列内容后在论坛后台开机伪静态功能即可。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^archiver/([a-z0-9\-]+\.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 ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
</IfModule>
新增dz7.0 TAG 规则
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
注:第三行RewriteBase / #如果用目录访问论坛请在"/"后跟目录名,如“RewriteBase /bbs”
如果其他问题可参照技术专区.htaccess大全或咨询dz官方。