Link to home
Start Free TrialLog in
Avatar of Medrise
Medrise

asked on

url redirect on IIS 7

How can I redirect old URLs, to their new location.

Here is what I want to do...

I have this URL

http://www.mysite.com/forums/categories.cfm?catid=18&zb=3848346
and it moved to the following location
http://forums.mysite.com/categories.cfm?catid=18&zb=3848346

Is it possible to setup a rule on the URL Rewrite settings?
Avatar of Rovastar
Rovastar
Flag of United Kingdom of Great Britain and Northern Ireland image

Try this rule

                <rule name="remove forums folder" stopProcessing="true">
                    <match url="forums/(.*)" />
                    <action type="Redirect" url="{R:1}" />
                </rule>
ASKER CERTIFIED SOLUTION
Avatar of Rovastar
Rovastar
Flag of United Kingdom of Great Britain and Northern Ireland 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 Medrise
Medrise

ASKER

It doesn't redirect... I get an error..

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Avatar of Medrise

ASKER

actually it did work... thanks... you need a trailing /

thanks...