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?
MedriseAsked:
Who is Participating?
 
RovastarConnect With a Mentor Commented:
Oh sorry read it wrong I thought you just wanted to remove the forums folder.

<rule name="remove forums folder" stopProcessing="true">
      <match url="forums/(.*)" />
      <action type="Redirect" url="http://forums.mysite.com/{R:1}" />
</rule>


0
 
RovastarCommented:
Try this rule

                <rule name="remove forums folder" stopProcessing="true">
                    <match url="forums/(.*)" />
                    <action type="Redirect" url="{R:1}" />
                </rule>
0
 
MedriseAuthor Commented:
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.
0
 
MedriseAuthor Commented:
actually it did work... thanks... you need a trailing /

thanks...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.