
IIS7 UrlRewrite 正则表达式写法 20
http://www.qunaly.com/xinxi/12063_2.html这个链接不能显示想要的页面总是和http://www.qunaly.com/xinxi/1...
http://www.qunaly.com/xinxi/12063_2.html 这个链接不能显示想要的页面 总是和
http://www.qunaly.com/xinxi/12063/ 显示一样的页面
web.config 书写方式如下
<rule name="rule10" stopProcessing="true">
<match url="^xinxi/([0-9]+)" />
<action type="Rewrite" url="info/show.asp?id={R:1}" />
</rule>
<rule name="rule12" stopProcessing="true">
<match url="^xinxi/([0-9]+)_([0-9]+).html" />
<action type="Rewrite" url="info/show.asp?id={R:1}&page={R:2}" />
</rule>
希望给写出正确的正则表达式
已经解决!添加¥ 符号
<rule name="rule10" stopProcessing="true">
<match url="^xinxi/([0-9]+)$" />
<action type="Rewrite" url="info/show.asp?id={R:1}" />
</rule> 展开
http://www.qunaly.com/xinxi/12063/ 显示一样的页面
web.config 书写方式如下
<rule name="rule10" stopProcessing="true">
<match url="^xinxi/([0-9]+)" />
<action type="Rewrite" url="info/show.asp?id={R:1}" />
</rule>
<rule name="rule12" stopProcessing="true">
<match url="^xinxi/([0-9]+)_([0-9]+).html" />
<action type="Rewrite" url="info/show.asp?id={R:1}&page={R:2}" />
</rule>
希望给写出正确的正则表达式
已经解决!添加¥ 符号
<rule name="rule10" stopProcessing="true">
<match url="^xinxi/([0-9]+)$" />
<action type="Rewrite" url="info/show.asp?id={R:1}" />
</rule> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏20(财富值+成长值)
1个回答
展开全部
你把两个规则前后换一下
规则没错
规则没错
已赞过
已踩过<
评论
收起
你对这个回答的评价是?

2022-08-05 广告
苏州蓝晓生物科技有限公司。标准化核心产品:公司拥有完整的琼脂糖介质、葡聚糖介质、聚甲基丙烯酸酯介质生产线,年产分离介质50000L,产品质量稳定并达到国际领先水平。核心优势:公司核心技术人员拥有近二十年不同基质的基球开发和官能化的丰富技术经...
点击进入详情页
本回答由苏州蓝晓生物科技有限公司_提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询