<configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections> <RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/html/mis_list_(^[5][1-9]|[6-9]\d{1}|\d{3,}$)\.html</LookFor> <SendTo>~/default.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
加粗部分的意思是对于“大于50”的相应网址进行跳转,这个正则表达式已经验证过完全可用,但是当输入大于50的路径的时候,却失效,不知道什么原因,请大家帮忙了,分不够可以在加!
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections> <RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/html/mis_list_(^[5][1-9]|[6-9]\d{1}|\d{3,}$)\.html</LookFor> <SendTo>~/default.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
加粗部分的意思是对于“大于50”的相应网址进行跳转,这个正则表达式已经验证过完全可用,但是当输入大于50的路径的时候,却失效,不知道什么原因,请大家帮忙了,分不够可以在加!
另外你说 输入小于等于50的 跳转~/default.aspx?id=$1
大于的话 跳哪里?
学习下 。
然后在看一下你的重写环境是不是配置好了,用一个最简单的转发规则测试一下是否可以实现重写!~~