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

 找回密码
 立即注册
搜索

论坛URL静态化功能在使用中失效

[复制链接]
chenyufan 发表于 2006-12-4 21:00:19 | 显示全部楼层 |阅读模式
服务器环境:
windows 2003 标准版 + sp1(己更新所有补丁)+IIS
php-4.3.11-Win32
mysql-4.0.26-win32
ZendOptimizer-3.0.1-Windows-i386

论坛程序版本:Discuz! 5.0.0(讫今为止最新版)

程序安装绝对位置和访问URL:
X-Space 2.0/SupeSite 5.0
  1. D:\bbs.gamearena.cn\discuz
复制代码
(访问URL:http://bbs.gamearena.cn)
Discuz! 5.0.0:
  1. D:\bbs.gamearena.cn\discuz\bbs
复制代码
(访问URL:http://bbs.gamearena.cn/bbs)

问题描述:
首先从本论坛的帖子:SupeSite v 5 在IIS下的Rewrite方法(20060627修正版)(https://discuz.dismall.com/thread-276141-1-1.html)中下载了ISAPI Rewrite,并按照教程上的指导配置了服务器。rewrite规则(httpd.ini)如下:
  1. [ISAPI_Rewrite]
  2. # 3600 = 1 hour
  3. CacheClockRate 3600
  4. RepeatLimit 32
  5. # Protect httpd.ini and httpd.parse.errors files
  6. # from accessing through HTTP
  7. # Discuz4.10 Rewrite规则
  8. RewriteRule ^(.*)/archiver/([a-z0-9\-]+\.html)$ $1/archiver/index\.php\?$2
  9. RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay\.php\?fid=$2&page=$3
  10. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3
  11. RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro\.php\?$2=$3

  12. # SupeSite Rewrite规则

  13. # 独立主机用户
  14. # 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /
  15. RewriteRule ^/([0-9]+)/spacelist(.*)$ /index\.php\?$1/action_spacelist$2
  16. RewriteRule ^/([0-9]+)/viewspace(.+)$ /index\.php\?$1/action_viewspace_itemid$2
  17. RewriteRule ^/([0-9]+)/viewbbs(.+)$ /index\.php\?$1/action_viewbbs_tid$2
  18. RewriteRule ^/([0-9]+)/(.*)$ /index\.php\?$1/$2
  19. RewriteRule ^/([0-9]+)$ /index\.php\?$1
  20. RewriteRule ^/action(.+)$ /index\.php\?action$1
  21. RewriteRule ^/category_(.+)$ /index\.php\?action_category_catid_$1
  22. RewriteRule ^/itemlist_(.+)$ /index\.php\?action_itemlist_catid_$1
  23. RewriteRule ^/viewnews_(.+)$ /index\.php\?action_viewnews_itemid_$1
  24. RewriteRule ^/viewthread_(.+)$ /index\.php\?action_viewthread_tid_$1
  25. RewriteRule ^/index([\.a-zA-Z0-9]*)$ /index\.php
复制代码

在论坛后台打开了Archiver 和普通页面均静态化功能。论坛帖子能正常以html方式打开,说明URL静态功能正确开启。
可是论坛在运行一段时间后,URL静态化功能就失效了,所有版块都无法用静态的html打开,通过重启IIS后恢复正常。PS:在论坛URL静态功能失效时,SS/XS没有任何影响。

还希望大家能给予帮助。目前论坛也就300多会员,在线人数最高也就50左右。
回复

使用道具 举报

随缘帅 发表于 2006-12-4 21:08:25 | 显示全部楼层
关注```````````
回复

使用道具 举报

 楼主| chenyufan 发表于 2006-12-6 11:23:06 | 显示全部楼层
官方的人来帮忙解释一下吗?
回复

使用道具 举报

bingyacn 发表于 2006-12-31 13:10:42 | 显示全部楼层
我也这样,没有解决方法吗
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-18 15:06 , Processed in 0.114297 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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