打开 forum/discuz.htm
文件搜索
{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}
将forum.php?gid=$cat[fid]替换为forum-$cat[fid].html
版块页:打开 source/module/forum/forum_forumdisplay.htm
文件搜索
将Location: forum.php?gid=$_G[fid]替换为Location: forum-$_G[fid].html
将forum.php?gid='.$forum_up['fid'].'替换为forum-'.$forum_up['fid'].'.html
将forum.php?gid='.$forum_top['fid'].'替换为forum-'.$forum_top['fid'].'.html
帖子页:打开 source/module/forum/forum_viewthread.php 文件
将? 'forum.php?gid='.$fup :替换为? 'forum-'.$fup.'.html' :
有两个处所需要修改
发帖页:打开 source/module/forum/forum_post.php 文件
将? 'forum.php?gid='.$fup :替换为? 'forum-'.$fup.'.html' :
有两个处所需要修改,分区伪静态法则添加:
rewrite ^([^.]*)/forum-([0-9]+).html$ $1/forum.php?gid=$2 last;
RewriteRule ^(.*)/forum(w+).html(?(.*))*$ $1/forum.php?gid=$2&$4
,