关于iis服务下iis伪静态页面的设置修改的不解?

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

iis的伪静态设置,按照这位兄弟的帖子成功了,首先谢谢他,帖子地址如下
http://bbs.ecshop.com/viewthread.php?tid=100890&page=1#pid437309

现在的我要修改它,可是怎么改都成功不了
原配置文件如下

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteCond %{HTTP:Host} www.sdlpzx.com
RewriteRule ^(.*)/index.html$ $1/index\.php
RewriteRule ^(.*)/category$$1/index\.php
RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed\.php\?cat=$2
RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed\.php\?brand=$2
RewriteRule ^(.*)/feed.xml$$1/feed\.php
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
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
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
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$$1/category\.php\?id=$2&brand=$3
RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$$1/category\.php\?id=$2
RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3
RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2
RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article\.php\?id=$2
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
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3&page=$4
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3
RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand\.php\?id=$2
RewriteRule ^(.*)/tag-(.*)\.html$1/search\.php\?keywords=$2
RewriteRule ^(.*)/snatch-([0-9]+)\.html$$1/snatch\.php\?id=$2
RewriteRule ^(.*)/group_buy-([0-9]+)\.html$$1/group_buy\.php\?act=view&id=$2

第一个问题:
因我的增加了一个文件,是用文章页面另存为修改过来的
上面其它的不变,我只是在下面添加了一行,发现没有作用!我添加的如下(红色代码为我添加的)
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3
RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2
RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article\.php\?id=$2
RewriteRule ^(.*)/helparticle_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/helparticle_cat\.php\?id=$2&page=$3&sort=$4&order=$5
RewriteRule ^(.*)/helparticle_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/helparticle_cat\.php\?id=$2&page=$3
RewriteRule ^(.*)/helparticle_cat-([0-9]+)(.*)\.html$ $1/helparticle_cat\.php\?id=$2
RewriteRule ^(.*)/helparticle-([0-9]+)(.*)\.html$$1/helparticle\.php\?id=$2


从上面可以看出,我只是增加了一个跟article页面一样的文件,我取名叫helparticle
可是我添加红色部分,没有实现哦,我这样操作也不对吗?

第二个问题:
配置文件我也不增加,只是 把所有的html改成了aspx结果也实现不了

第三个问题:
这个问题是在第二个问题之上的
使用上面的帖子操作之后,默认伪静态页面如下
分类页面:http://www.baidu.com/category-1-b0.html
产品页面:http://www.baidu.com/goods-46.html

我想修改成这样:
分类页面:http://www.baidu.com/Category_1/index.aspx
产品页面:http://www.baidu.com/Item/46.aspx

根据这种情况,我不知道怎么修改,因为上面那么简单的都没有成功过!

那位兄弟能帮帮我啊,对了上面我修改过后,我都有重启过IIS

回答:
修改规则不用重启IIS就会生效,

我并没有发现你修改了哪里?

要同时修改程序才能点出你要的那种连接