We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Redirecting old URLsRSS

4 replies

Last post Aug 01, 2012 05:12 AM by elinejoseph85

  • Redirecting old URLs

    Dec 12, 2011 02:07 PM|techcf|LINK

    I would like to know what is the best way to redirect some old URLs... we used to have a sub folder for our forums, but in the past year we moved to a sub domain... We still have some places that link to the old URLs (using the sub folder) and I would like to know how can I make a URL rewrite to do the following.


    if the url is:  http://www.mysite.com/forums/category.cfm?5    this should be http://forums.mysite.com/category.cfm?5


    Thanks for the help.

    redirection URL Url Rewrite

  • Rovastar Rovastar

    5495 Posts



    Re: Redirecting old URLs

    Dec 12, 2011 06:41 PM|Rovastar|LINK


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

    Troubleshoot IIS in style
  • Re: Redirecting old URLs

    Mar 22, 2012 03:17 AM|AlvinBasil|LINK

     With the help of.htaccess service you can redirect the old url.

  • Re: Redirecting old URLs

    May 18, 2012 07:40 AM|jhonybravo222|LINK

     Use 301 redirect to move from old url to new.

  • Re: Redirecting old URLs

    Aug 01, 2012 05:12 AM|elinejoseph85|LINK

    If you have made changes to your site structure, you can still use the lines above on your old domain, but you will also need to create redirects in the .htaccess file on your new domain to handle the specific site changes. To redirect a single page to a new location on the same domain, use the following syntax: Redirect 301 /old/old.htm http://www.domain.com/new.htm It is possible to create rules that will redirect URLs that follow a certain pattern to a new location. Since these rules involve complex regular expressions, we do not cover them here. An SEO professional can help you create these more complex and situation-specific rules. Just be sure that you use a 301 redirect for relocated content. Any other type of redirect will not preserve your search engine rankings.