Dan
asked on
How do I write a redirect rule for this scenario?
I have a url that follows this convention:
http://www.mysite.org/media/guide/e/7166/mobile/type/post/parameterthatchanges
I want it to hack off anything starting at mobile so that it would display as:
http://www.mysite.org/media/guide/e/7166
How would I accomplish this in a redirect rule in the web.config? I know that the following doesn't work, but this is as far as I've gotten so far:
http://www.mysite.org/media/guide/e/7166/mobile/type/post/parameterthatchanges
I want it to hack off anything starting at mobile so that it would display as:
http://www.mysite.org/media/guide/e/7166
How would I accomplish this in a redirect rule in the web.config? I know that the following doesn't work, but this is as far as I've gotten so far:
<rule name="oldMobileSkin">
<match url="^/laststatus/mobile/mrtype/mobile(.*)" />
<action type="Redirect" url="/" redirectType="Permanent" />
</rule>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER