0
我想匹配URL重寫拖放文件擴展名,但保持查詢字符串對於特定的網頁
https://www.example.com/abc/xyz.aspx?p1=a&p2=b&p3=c&p4=d
,我想它重寫
https://www.example.com/abc/xyz?p1=a&p2=b&p3=c&p4=d
我這有重寫規則,但它不工作...
<rule name="Redirect Home Detail Pages">
<match url="(\/abc\/xyz.aspx).*" />
<action type="Redirect" url="/abc/xyz" appendQueryString="True" redirectType="Permanent" />
</rule>
有什麼建議嗎?
謝謝@VictorLeontyev – s15199d