ss/xs的静态页面搞了一星期终于成功了!很多人不知道静态页面问题是因为Rewrite的httpd.ini设置问题而引起的!
建议大家都要使用Rewrite页面,否则影响收录
我的设置在论坛找了几天,还没找到完整的Rewrite设置,经过整合推出正确的 DZ+SS+SX httpd.ini设置.
演示:
club.92yes.com bbs.92yes.com
正确代码入下(说明:此设置ss和DZbbs都是在根目录情况下的设置,如果放在子目录请将语句中/后面加上子目录名,后面跟"/"号
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
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 ^/action(.+)$ /index\.php\?action$1
RewriteRule ^/category_(.+)$ /index\.php\?action_category_catid_$1
RewriteRule ^/itemlist_(.+)$ /index\.php\?action_itemlist_catid_$1
RewriteRule ^/viewnews_(.+)$ /index\.php\?action_viewnews_itemid_$1
RewriteRule ^/viewthread_(.+)$ /index\.php\?action_viewthread_tid_$1
RewriteRule ^/index([\.a-zA-Z0-9]*)$ /index\.php复制代码
________________________________
SS①:群:19984731(已满)
SS②:群:12335452
SS③ 群:17977333
DZ 群:32259490
[
本帖最后由 luk5185 于 2006-12-30 07:19 编辑 ]