I Have some problems with redirecting to another URL based on the query string parameters. I have url for mapping service, for example "http://www.mydomain.com/?lon=111&lat=222&zoom=3" and I need it to be redirected to "http://www.mydomain.com/111/222/3".
I have this rule in my web.config, but it does not work
<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>