Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United States of America

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:

<rule name="oldMobileSkin">
  <match url="^/laststatus/mobile/mrtype/mobile(.*)" />
  <action type="Redirect" url="/" redirectType="Permanent" />
</rule>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of masnrock
masnrock
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

thanks for your input, didn't resolve my issue, but thanks for the willingness to assist.