0

我正在挠头寻找一种方法,将一个具有特定查询字符串的 URL 重定向到另一个具有 IIS 中新的特定查询字符串的 URL。

例子 -

http://example.com/10/list_display.asp?a=b --> http://example.com/display.asp?c=d

关于如何做到这一点的任何线索——我们提前知道新旧查询字符串应该是什么,所以要避免使用正则表达式。

谢谢,肖恩

4

1 回答 1

0

添加

<rule name="Rewrite rule1" stopProcessing="true">
                <match url="10/list_display.asp" />
                <conditions>
                    <add input="{QUERY_STRING}" pattern="profession=2599" />
                    <add input="{QUERY_STRING}" pattern="country=The*" />
                </conditions>
                <action type="Redirect" url="the-redirect.aspx" appendQueryString="false" />
            </rule>
于 2013-11-29T16:33:14.840 回答