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

 找回密码
 立即注册
搜索

[已解决] 移动目录后静态化失效.

[复制链接]
夙星蓝 发表于 2009-11-1 18:18:18 | 显示全部楼层 |阅读模式
本帖最后由 夙星蓝 于 2009-11-1 19:17 编辑

请问各位大大~ 我把我的UCH从根目录移动到home目录,将论坛从BBS移动了根目录以后  论坛使用正常,可是Uch的访问地址如:http://www.i0857.com/home/admincp.php?ac=cache  都无法打开了 在后台关闭静态后恢复正常...后来想起在静态规则里面编辑了目录名:/home  也没效果..在ucenter中也更新了地址的.
附修改后的规则:
RewriteEngine On
RewriteBase /home
RewriteRule ^(space|network)\-(.+)\.html$ $1.php?rewrite=$2 [L]
RewriteRule ^(space|network)\.html$ $1.php [L]
RewriteRule ^([0-9]+)$ space.php?uid=$1 [L]

请各位热心人帮忙看看~

--------------------------感谢dongqingtree 提供方法如下:
httpd.ini文件内容:
  1. # 3600 = 1 hour

  2. CacheClockRate 3600



  3. RepeatLimit 32



  4. # Protect httpd.ini and httpd.parse.errors files

  5. # from accessing through HTTP



  6. RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4

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

  8. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4

  9. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4

  10. RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3
  11. RewriteRule ^/(space|network)\-(.+)\.html$ /$1.php?rewrite=$2 [L]

  12. RewriteRule ^/(space|network)\.html$ /$1.php [L]

  13. RewriteRule ^/([0-9]+)$ /space.php?uid=$1 [L]

复制代码
回复

使用道具 举报

 楼主| 夙星蓝 发表于 2009-11-1 18:57:51 | 显示全部楼层
为什么我的提问总是不被人回答呢~~~ 各位...可怜可怜我这个小白吧..
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 23:06 , Processed in 0.096276 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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