【发布时间】:2012-11-05 21:36:40
【问题描述】:
我的 IIS 7 服务器有一个 url 重写规则,如下所示:
<rewrite>
<rules>
<rule name="topcontent">
<match url=".*">
<action type="rewrite" url="mysite.com/{R:0}"/>
</match>
</rule>
</rules>
</rewrite>
现在我必须为特定位置提供此规则的例外情况,即 'http://tempurl94.goto.com/?q=x&m=y' where 'http://tempurl94.goto.com '将永远存在 在 url 中,查询参数 q 和 m 可能会有所不同。所以我们必须为 这个网址。怎么写不同(匹配url=?)。
也许我可以在“topcontent”规则之前写一条规则并说stopProcessing='true'。
但我需要知道我应该在<match url=' ? '> 中写什么以及我应该在<action> 标签中写什么。
【问题讨论】:
标签: iis iis-7 url-rewriting iis-6