htaccess 换换成 iis 伪静态问题 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
futurejunjie
V2EX    问与答

htaccess 换换成 iis 伪静态问题

  futurejunjie 2017-09-07 14:46:39 +08:00 2818 次点击
这是一个创建于 3024 天前的主题,其中的信息可能已经有所发展或是发生改变。
公司给我一个伪静态文.htaccess,网站是 asp 的,我在 iis7.5 重写工具里转换的时候提示出错。
无法将该规则集转换为等效的 iis 格式,因为不支持控制流标记( C、S、N )

以下是.htaccess 文件
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule /m/index.html /m/index.asp

RewriteRule /m/about.html /m/about.asp
RewriteRule /m/about(\d+)\.html /m/about\.asp\?wid=$1

RewriteRule /m/service.html /m/service.asp
RewriteRule /m/service(\d+)\.html /m/service\.asp\?wid=$1

RewriteRule /m/guestbook.html /m/guestbook.asp

RewriteRule /m/job.html /m/job.asp

RewriteRule /m/qqonline.html /m/qqonline.asp


RewriteRule /m/news.html /m/news.asp
RewriteRule /m/newslist.html /m/newslist.asp
RewriteRule /m/newslist(\d+)_(\d+)\.html /m/newslist\.asp\?newsclassid=$1&newsid=$2 [N,I]
RewriteRule /m/newslist(\d+)\.html /m/newslist\.asp\?newsclassid=$1
RewriteRule /m/newslist_(\d+)_(\d+)\.html /m/newslist\.asp\?newsclassid=$1&page=$2 [N,I]


RewriteRule /m/solutionslb.html /m/solutionslb.asp
RewriteRule /m/solutions.html /m/solutions.asp
RewriteRule /m/solutions(\d+)_(\d+)\.html /m/solutions\.asp\?newsclassid=$1&newsid=$2 [N,I]
RewriteRule /m/solutions(\d+)\.html /m/solutions\.asp\?newsclassid=$1
RewriteRule /m/solutions_(\d+)_(\d+)\.html /m/solutions\.asp\?newsclassid=$1&page=$2 [N,I]


RewriteRule /m/case.html /m/case.asp
RewriteRule /m/case(\d+)_(\d+)\.html /m/case\.asp\?newsclassid=$1&newsid=$2 [N,I]
RewriteRule /m/case(\d+)\.html /m/case\.asp\?newsclassid=$1
RewriteRule /m/case_(\d+)_(\d+)\.html /m/case\.asp\?newsclassid=$1&page=$2 [N,I]


RewriteRule /m/download.html /m/download.asp
RewriteRule /m/download(\d+)\.html /m/download\.asp\?downloadid=$1
RewriteRule /m/download_(\d+)_(\d+)\.html /m/download\.asp\?downloadid=$1&page=$2 [N,I]


RewriteRule /m/productlb.html /m/productlb.asp
RewriteRule /m/product.html /m/product.asp
RewriteRule /m/productshow(\d+)_(\d+)\.html /m/productshow\.asp\?Parentid=$1&ProdNum=$2 [N,I]
RewriteRule /m/product(\d+)\.html /m/product\.asp\?Parentid=$1
RewriteRule /m/product_(\d+)_(\d+)\.html /m/product\.asp\?Parentid=$1&page=$2 [N,I]




RewriteRule /index.html /index.asp

RewriteRule /about.html /about.asp
RewriteRule /about(\d+)\.html /about\.asp\?wid=$1

RewriteRule /service.html /service.asp
RewriteRule /service(\d+)\.html /service\.asp\?wid=$1

RewriteRule /guestbook.html /guestbook.asp

RewriteRule /job.html /job.asp

RewriteRule /qqonline.html /qqonline.asp


RewriteRule /news.html /news.asp
RewriteRule /newslist.html /newslist.asp
RewriteRule /newslist(\d+)_(\d+)\.html /newslist\.asp\?newsclassid=$1&newsid=$2 [N,I]
RewriteRule /newslist(\d+)\.html /newslist\.asp\?newsclassid=$1
RewriteRule /newslist_(\d+)_(\d+)\.html /newslist\.asp\?newsclassid=$1&page=$2 [N,I]


RewriteRule /solutions.html /solutions.asp
RewriteRule /soluti onshow(\d+)_(\d+)\.html /solutionsshow\.asp\?newsclassid=$1&newsid=$2 [N,I]
RewriteRule /solutions(\d+)\.html /solutions\.asp\?newsclassid=$1
RewriteRule /solutions_(\d+)_(\d+)\.html /solutions\.asp\?newsclassid=$1&page=$2 [N,I]


RewriteRule /case.html /case.asp
RewriteRule /case(\d+)_(\d+)\.html /case\.asp\?newsclassid=$1&newsid=$2 [N,I]
RewriteRule /case(\d+)\.html /case\.asp\?newsclassid=$1
RewriteRule /case_(\d+)_(\d+)\.html /case\.asp\?newsclassid=$1&page=$2 [N,I]


RewriteRule /download.html /download.asp
RewriteRule /download(\d+)\.html /download\.asp\?downloadid=$1
RewriteRule /download_(\d+)_(\d+)\.html /download\.asp\?downloadid=$1&page=$2 [N,I]

RewriteRule /mall.html /mall.asp

RewriteRule /product.html /product.asp
RewriteRule /productshow(\d+)_(\d+)\.html /productshow\.asp\?larseq=$1&ProdNum=$2 [N,I]
RewriteRule /product(\d+)\.html /product\.asp\?Parentid=$1
RewriteRule /product_(\d+)_(\d+)\.html /product\.asp\?Parentid=$1&page=$2 [N,I]
RewriteRule /(.+)\.html /productshow\.asp\?model=$1
目前尚无回复
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3825 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 31ms UTC 05:29 PVG 13:29 LAX 21:29 JFK 00:29
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86