假如X-Sapce 2.0/SupeSite 5.0我安装在d:\wwwroot\myweb目录下面,捆绑
www.123.com域名
discuz!5.0论坛我安装在d:\wwwroot\myweb\bbs正面,捆绑了bbs.123.com域名。
我的Rewrite规则为:
复制内容到剪贴板
代码:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Discuz5.0 Rewrite规则
RewriteRule ^(.*)/archiver/([a-z0-9\-]+\.html)$ $1/archiver/index\.php\?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay\.php\?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro\.php\?$2=$3
# SupeSite Rewrite规则
# 独立主机用户
# 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /
RewriteRule ^/action/(.+)$ /index\.php\?action/$1
RewriteRule ^/i([0-9]+)(.*)$ /index\.php\?action/viewspace/itemid/$1$2
RewriteRule ^/t([0-9]+)(.*)$ /index\.php\?action/viewbbs/tid/$1$2
RewriteRule ^/([0-9]+)/tplid(.*)$ /index\.php\?action/space/uid/$1/tplid$2
RewriteRule ^/([0-9]+)/starttime(.+)$ /index\.php\?action/spacelist/uid/$1/starttime$2
RewriteRule ^/([0-9]+)/type(.+)$ /index\.php\?action/spacelist/uid/$1/type$2
RewriteRule ^/([0-9]+)(.*)$ /index\.php\?action/space/uid/$1$2
RewriteRule ^/index\.([a-zA-Z]+)$ /index.php这样我用
http://www.123.com/bbs访问论坛,会不会有问题,需要修改论坛的Rrewrite配置规则吗?我已经确认用bbs.123.com访问论坛,URL静态是没有问题的。因为论坛比较重要,所以在没有搞清楚之前,不敢贸然安装XS/SS上去试验,所以请大家指点一下