1、discuz站点由于伪静态设置问题无法正常显示

2、在discuz后台,首页,确定自己站点的服务器系统及 PHP、服务器软件。由于服务器软件为Microsoft-IIS/6.0,确定问题为需要配置IIS/6.0的伪静态设置。

3、在discuz后台,全局--SEO设置--查看当前的 Rewrite 规则

4、显示IIS/6.0的规则如图所示

5、新建一文本文档httpd.ini,将IIS/6.0的规则拷贝到文档内,保存。文档内容如下:[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5RewriteRule ^(.*)/thread-{fid}-([0-9]+)- ([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid={tid}&extra=page\%3D$3&page=$2&$6RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $1/plugin\.php\?id=$2:$3&$5

6、将文件httpd.ini,用ftp软件上传到网站的根目录下。刷新网站,问题解决。
