1
我在根据查询字符串参数重定向到另一个URL时遇到了一些问题。 我有映射服务的网址,例如“http://www.mydomain.com/?lon=111 & lat = 222 & zoom = 3” 我需要将它重定向到“http:// www。 mydomain.com/111/222/3" 。IIS URL重写模块:基于查询字符串重定向
我在我的web.config这条规则,但它不工作
<rule name="Location redirect">
<match url="\?lon=(\d+)&lat=(\d+)&zoom=(\d+)" />
<action type="Redirect" url="{R:1}/{R:2}/{R:3}" redirectType="Found" />
</rule>
非常感谢您! – 2010-11-11 11:25:45