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

 找回密码
 立即注册
搜索

[已答复] 伪静态成功SS7.0+DZ7.0+UCHOME1.5

[复制链接]
lnylove 发表于 2009-4-18 22:28:20 | 显示全部楼层 |阅读模式
终于可以往下进行了,之前也不知道是什么原因在SS中论坛版块和帖子都打不开,发贴求助得有半个月没人应答,今日终于自己解决了。可以往下进行了。
前段时间研究了一下静态问题,搞明白一些,有一点经验,和大家分享一下。
如果要配置伪静态,首先要做的就是问你的空间商是否支持,现在我知道的有两种,一个是.htaccess
一个是httpd.ini,其它里面的内容都是一样的,就看你的空间商支持哪个了,像我的那个空间商就是支持后者的,而且还要求只能放在根目录下,那么三个程序的伪静态文件都放在根目录,只能放在一起,我其实是个菜鸟,本来是想让他们的技术帮我把三个合在一起,后来自己想想,干脆自己动手,把三个静态文件放到一个httpd.ini文件里,试一下,结果还真好使,呵呵!就这样配置成功了。
回复

使用道具 举报

 楼主| lnylove 发表于 2009-4-18 22:28:48 | 显示全部楼层
地址是:www.godme.cn
下一步换logo
回复

使用道具 举报

liushilog 发表于 2009-4-20 15:13:38 | 显示全部楼层
给个规则附件下载地址啊
回复

使用道具 举报

jacky7903 发表于 2009-4-25 09:51:35 | 显示全部楼层
哥们别自己玩啊.....=.=~拉兄弟一把
回复

使用道具 举报

龙渊网络 发表于 2009-4-26 11:49:06 | 显示全部楼层
哥们别自己玩啊.....=.=~拉兄弟一把
jacky7903 发表于 2009-4-25 09:51


顶板凳,一个意思,楼主详细些~
回复

使用道具 举报

weixc 发表于 2009-4-26 22:56:00 | 显示全部楼层
俺也想知道呢,是不是httpd.ini这个文件直接放在根目录就可以了?空间商说是支持rewrite的
回复

使用道具 举报

33665512345 发表于 2009-4-28 16:59:21 | 显示全部楼层
俺也想知道呢,
回复

使用道具 举报

demoseo 发表于 2009-6-18 15:50:45 | 显示全部楼层
求个规则啊。。www.wangwen.org
回复

使用道具 举报

 楼主| lnylove 发表于 2009-10-26 22:29:10 | 显示全部楼层
本帖最后由 lnylove 于 2009-10-28 23:57 编辑

我的空间支持的是httpd.ini文件
SS7.0+DZ7.0+UCHOME1.5这三个伪静态文件是这样的
  1. [ISAPI_Rewrite]

  2. # 3600 = 1 hour
  3. CacheClockRate 3600

  4. RepeatLimit 32

  5. # SupeSite Rewrite规则
  6. # 独立主机用户
  7. # 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /

  8. RewriteRule ^/([0-9]+)$ /index\.php\?uid/$1 [L]
  9. RewriteRule ^/([0-9]+)/spacelist(.+)$ /index\.php\?uid/$1/action/spacelist/type$2 [L]
  10. RewriteRule ^/([0-9]+)/viewspace(.+)$ /index\.php\?uid/$1/action/viewspace/itemid$2 [L]
  11. RewriteRule ^/([0-9]+)/viewbbs(.+)$ /index\.php\?uid/$1/action/viewbbs/tid$2 [L]
  12. RewriteRule ^/([0-9]+)/(.*)$ /index\.php\?uid/$1/$2 [L]

  13. RewriteRule ^/action(.+)$ /index\.php\?action$1 [L]
  14. RewriteRule ^/category(.+)$ /index\.php\?action/category/catid$1 [L]
  15. RewriteRule ^/viewnews(.+)$ /index\.php\?action/viewnews/itemid$1 [L]
  16. RewriteRule ^/viewthread(.+)$ /index\.php\?action/viewthread/tid$1 [L]
  17. RewriteRule ^/mygroup(.+)$ /index\.php\?action/mygroup/gid$1 [L]


  18. # Protect httpd.ini and httpd.parse.errors files
  19. # from accessing through HTTP
  20. # Discuz6.1 Rewrite规则
  21. RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
  22. RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
  23. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  24. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
  25. RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3

  26. # PhpWind Rewrite规则
  27. RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
  28. RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2




  29. # UCHome Rewrite规则
  30. # 独立主机用户
  31. # 修改以下语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 /
  32. RewriteRule ^/UcenterHome/(space|network)-(.+)\.html$ /UcenterHome/$1\.php\?rewrite=$2 [L]
  33. RewriteRule ^/UcenterHome/(space|network)\.html$ /UcenterHome/$1\.php [L]
  34. RewriteRule ^/UcenterHome/([0-9]+)$ /UcenterHome/space\.php\?uid=$1 [L]
复制代码
现在SS已经不用了,论坛放在了根目录下,uchome放在home文件夹里。现在用的是
  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. # Discuz Rewrite规则
  8. RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
  9. RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
  10. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  11. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
  12. RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3

  13. # PhpWind Rewrite规则
  14. RewriteRule ^(.*)-htm-(.*)$ $1\.php\?$2
  15. RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index\.php\?$2



  16. # UCHome Rewrite规则
  17. # 独立主机用户
  18. # 修改以下语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 /
  19. RewriteRule ^/home/(space|network)-(.+)\.html$ /home/$1\.php\?rewrite=$2 [L]
  20. RewriteRule ^/home/(space|network)\.html$ /home/$1\.php [L]
  21. RewriteRule ^/home/([0-9]+)$ /home/space\.php\?uid=$1 [L]
复制代码
地址:http://www.godme.cn
回复

使用道具 举报

qhdyezhu 发表于 2009-10-28 11:59:14 | 显示全部楼层
SS7.0+DZ7.0+UCHOME1.5完全伪静态成功,感谢楼主,请看秦皇岛圈演示:http://www.my0335.com/
  1. [ISAPI_Rewrite]


  2. # 3600 = 1 hour

  3. CacheClockRate 3600
  4. RepeatLimit 32

  5. # DISCUZ论坛+UCHome Rewrite规则,针对可操作IIS用户,
  6. # 此默认规则只针对UCHome程序放在根目录中用独立域名访问的,论坛也可以直接用.

  7. RewriteRule ^(.*)/bbs/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ /bbs/$1/archiver/index\.php\?$2&$4
  8. RewriteRule ^(.*)/bbs/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ /bbs/$1/forumdisplay\.php\?fid=$2&page=$3&$4
  9. RewriteRule ^(.*)/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ /bbs/$1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  10. RewriteRule ^(.*)/bbs/space-(username|uid)-(.+)\.html\?*(.*)$ /bbs/$1/space\.php\?$2=$3&$4
  11. RewriteRule ^(.*)/bbs/tag-(.+)\.html\?*(.*)$ /bbs/$1/tag\.php\?name=$2&$3


  12. RewriteRule ^/home/[/color](space|network)-(.+)\.html$ /home/[/color]$1\.php\?rewrite=$2 [L]
  13. RewriteRule ^/home/(space|network)\.html$ /home/$1\.php [L]
  14. RewriteRule ^/home/([0-9]+)$ /home/space\.php\?uid=$1 [L]

  15. # SupeSite Rewrite规则
  16. # 独立主机用户
  17. # 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /

  18. RewriteRule ^/index.html$ /index.php [L]
  19. RewriteRule ^/([0-9]+)$ /index\.php\?uid/$1 [L]
  20. RewriteRule ^/([0-9]+)/spacelist(.+)$ /index\.php\?uid/$1/action/spacelist/type$2 [L]
  21. RewriteRule ^/([0-9]+)/viewspace(.+)$ /index\.php\?uid/$1/action/viewspace/itemid$2 [L]
  22. RewriteRule ^/([0-9]+)/viewbbs(.+)$ /index\.php\?uid/$1/action/viewbbs/tid$2 [L]
  23. RewriteRule ^/([0-9]+)/(.*)$ /index\.php\?uid/$1/$2 [L]

  24. RewriteRule ^/action(.+)$ /index\.php\?action$1 [L]
  25. RewriteRule ^/category(.+)$ /index\.php\?action/category/catid$1 [L]
  26. RewriteRule ^/viewnews(.+)$ /index\.php\?action/viewnews/itemid$1 [L]
  27. RewriteRule ^/viewthread(.+)$ /index\.php\?action/viewthread/tid$1 [L]
  28. RewriteRule ^/mygroup(.+)$ /index\.php\?action/mygroup/gid$1 [L]
复制代码
这是本站伪静态规则,论坛、uchome不在根目录请注意修改目录,红色位置
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-15 11:08 , Processed in 0.103187 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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