none
301 Redirect in sharepoint 2007

Answers

All replies

  • If you're using IIS7 you could use the URL Rewrite module from the SEO Toolkit. It would allow you to configure the redirect using the IIS Manager UI. In case of IIS6 you will need another solution such as URL Rewriter.net (http://urlrewriter.net/) which allows you to enter the redirect entries in web.config. Other approaches would involve custom code and a custom HTTP Handler/Module.


    w: http://blog.mastykarz.nl | t: @waldekm | c: http://mavention.codeplex.com | c: http://mavention.nl
    • Marked as answer by Stanfford Liu Friday, August 13, 2010 3:26 AM
    Thursday, August 05, 2010 7:26 PM
  • Hi Weldek,

    Thanks for your ans. Now we are using IIS6. I did the following.

    1. Select the directory def (as mentioned above) in iis and set the value of "A Redirection to a URL" under directory tab with selecting the check box "A permanent redirection for this resource".

    2. Now Type http://www.abc.com/def/ in browser and check it in Fiddler.

    3. Following is the result.

    HTTP/1.1 301 Moved Permanently
    Content-Length: 171
    Content-Type: text/html
    Location: [The url specified in IIS]
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Date: Fri, 13 Aug 2010 23:50:32 GMT
    Connection: keep-alive

    Will this solve my purpose.

    Thanks!

    Prithwijit

    Friday, August 13, 2010 11:55 PM
  • It does result in a 301 so I guess it's okay.
    w: http://blog.mastykarz.nl | t: @waldekm | c: http://mavention.codeplex.com | c: http://mavention.nl
    Saturday, August 14, 2010 9:01 AM
  • Hi,

    I am using IIS 7. I tried with HTTP redirect but it is not working. My url is like http://abc.ms.com and it should redirect to http://abc.ms.com/home/pages/default.aspx. I want to set Redirect 301.

    Pls help.

    Thanks,

     

    Tuesday, October 19, 2010 9:20 AM
  • Hi Dhaval,

    I am assuming that you want to redirect from  http://abc.ms.com/default.asp or http://abc.ms.com/default.aspx page to your new page. You add the following in your default.asp page to do an 301 redirecetion.

    <%@ Language=VBScript %>
    <%
      Response.Status="301 Moved Permanently"
      Response.AddHeader "Home","/home/pages/default.aspx"
    %>

    This may solve your prob.

    Thanks!

    Prithwijit

    Friday, November 19, 2010 4:45 PM
  • Hi Prithwijit,

    I tried same but it is working only in IE. Its not getting redirected in Firefox, Chrome etc.

    Is there any browser specific code required?

     

    Regards,

    Dhaval Patel

    Thursday, January 20, 2011 1:34 PM
  • Does any one know how to place a 301 redirect on this website as there is an index page & a dot com page showing.

    www.sportsleisurewear.com

    Thursday, March 01, 2012 1:24 AM