Redirecting old URLs RRS feed

  • Question

  • User1105265377 posted

    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.

    Monday, December 12, 2011 2:07 PM

All replies

  • User-2064283741 posted


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

    Monday, December 12, 2011 6:41 PM
  • User-84895304 posted

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

    Thursday, March 22, 2012 3:17 AM
  • User-2110569270 posted

     Use 301 redirect to move from old url to new.

    Friday, May 18, 2012 7:40 AM
  • User128512046 posted
    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.
    Wednesday, August 1, 2012 5:12 AM