紧急求助..静态问题.

2016-07-07 15:24 来源:www.chinab4c.com 作者:ecshop专家

我刚换了台VM的服务器. 2003系统加6.0IIS 2.62的ECSHOP搞了一个通宵没弄好静态重写.

旧服务器上用过的重写规则..拿到新的不能用..装的都是一样的ISAPI_Rewrite (收费的)
好心人帮帮忙.QQ:33420848

旧服务器上可用的的规则:
[ISAPI_Rewrite]

# 为了确保重写规则不影响服务器上的其他站点
# 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名

RewriteCond %{HTTP:Host}

RewriteRule ^(.*)/index.html$ $1/index.php [I]
RewriteRule ^(.*)/category$$1/index.php [I]
RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2 [I]
RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2[I]
RewriteRule ^(.*)/feed.xml$$1/feed.php[I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category.php?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)\.html$ $1/category.php?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6[I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category.php?id=$2&brand=$3&page=$4&sort=$5&order=$6[I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category.php?id=$2&brand=$3&page=$4[I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$ $1/category.php?id=$2&brand=$3 [I]
RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category.php?id=$2[I]
RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods.php?id=$2[I]
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/article_cat.php?id=$2&page=$3&sort=$4&order=$5[I]
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat.php?id=$2&page=$3 [I]
RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat.php?id=$2[I]
RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article.php?id=$2 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$1/brand.php?id=$2&cat=$3&page=$4&sort=$5&order=$6 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3&page=$4[I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3[I]
RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand.php?id=$2[I]
RewriteRule ^(.*)/tag-(.*)\.html$1/search.php?keywords=$2[I]
RewriteRule ^(.*)/snatch-([0-9]+)\.html$$1/snatch.php?id=$2[I]
RewriteRule ^(.*)/group_buy-([0-9]+)\.html$

回答:
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]

其实很简单了

顶上去。。希望有人帮我

现在是首页也不能访问吗?
还有动态地址能访问吗?
装的都是一样的ISAPI_Rewrite (收费的)这个是否已经配置好,还有可以向空间要具体的重写规则