此规则不会将查询字符串添加到输出中,我无法弄清楚原因:-
<rule name="Show Week" stopProcessing="true">
<match url="^show-week.aspx(.*)" />
<action type="Redirect" url="showresort.aspx{R:1}" redirectType="Permanent" appendQueryString="true" />
</rule>
输入 URL 是 www.mysite.com/show-week.aspx?siteId=EUR&resortId=672&resortType=1&avail=0
输出 URL 应为 www.mysite.com/showresort.aspx?siteId=EUR&resortId=672&resortType=1&avail=0
但我得到的只是 www.mysite.com/showresort.aspx