我有一个像www.example.com/items/report.asp?id=2&no=12&iq=200&td=1
如何使用url rewrite隐藏查询字符串部分?
输出应该像:www.example.com/items/report.asp
<rule name="Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions trackAllCaptures="true">
<add input="{QUERY_STRING}" pattern="id=([0-9]+)" />
<add input="{QUERY_STRING}" pattern="&no=([0-9]+)" />
<add input="{QUERY_STRING}" pattern="&iq=([0-9]+)" />
<add input="{QUERY_STRING}" pattern="&td=([0-9]+)" />
<add input="{REQUEST_URI}" pattern="^/items/report.asp" negate="true" />
</conditions>
<action type="Rewrite" url="/items/report.asp" appendQueryString="false" redirectType="Found"/>
</rule>