Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[教程] 伪静态设置中被忽略的一步

[复制链接]
job2nd 发表于 2012-7-1 14:53:03 | 显示全部楼层 |阅读模式
新装了个论坛,bbs.fanli0838.com想配置下伪静态,结果试了半天,论坛的帖子都翻了个遍,都没有能解决问题。




最后静下心想了想,本来主域名fanli0838.com也是做了伪静态处理的,论坛是绑定的子目录,规则放在论坛目录里的,问题可能出在这里。



本人IIS6.0。所以考虑把官方代码部分复制到主站的静态规则里看看。



{:soso_e113:}呵呵,不小心成功了!{:soso_e182:}



遇到类似情况的同学赶紧试试吧
复制以下代码到原来的httpd.ini最后面
  1. # discuz规则
  2. RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$

  3. $1/portal\.php\?mod=topic&topic=$2&$4
  4. RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$

  5. $1/portal\.php\?mod=view&aid=$2&page=$3&$5
  6. RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$

  7. $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5
  8. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?

  9. (.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%

  10. 3D$4&page=$3&$6
  11. RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$

  12. $1/forum\.php\?mod=group&fid=$2&page=$3&$5
  13. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$

  14. $1/home\.php\?mod=space&$2=$3&$5
  15. RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$

  16. $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5
  17. RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$

  18. $1/index\.pid=$2
  19. RewriteRule ^/zhe-(.*)\.html$ /zhe\.php\?q=$1
  20. RewriteRule ^/zhe\.html$ /zhe\.php\?q=$1
复制代码
我是副站长 发表于 2012-7-21 13:10:10 | 显示全部楼层
一不小心,我依然没有成功
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-17 15:44 , Processed in 0.177824 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表