在根目录public_html下新建.htaccess伪静态文件
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.htmlportal.php?mod=topic&topic=1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.htmlforum.php?mod=forumdisplay&fid=1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.htmlforum.php?mod=viewthread&tid=1&extra=page\%3D3&page=2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.htmlforum.php?mod=group&fid=1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.htmlhome.php?mod=space&1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.htmlarchiver/index.php?action=1&value=$2&%1
下载附件解压后上传网站根目录
然后discuz后台开启伪静态功能
后台=全局=SEO设置=URL 静态化=勾选可用=提交保存
转载请注明:主机帮助 » Discuz3.2伪静态设置