301 Redirect in sharepoint 2007
-
Thursday, August 05, 2010 5:31 PM
Hi,
We are going live with our new site on internet shortly and we wnat to do an 301 redirect from old url to our new url. e.g. our url http://www.abc.com/def/ and the new url http://www.abc.com/efg/klm/zzz.aspx [The domain is same]. It will raise a 404 if we are not set the 301 redirect.
Please let me know how can we do this?
All Replies
-
Thursday, August 05, 2010 7:26 PM
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
-
Friday, August 13, 2010 11:55 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-aliveWill this solve my purpose.
Thanks!
Prithwijit
-
Saturday, August 14, 2010 9:01 AMIt 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 -
Tuesday, October 19, 2010 9:20 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,
-
Friday, November 19, 2010 4:45 PM
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
-
Thursday, January 20, 2011 1:34 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, March 01, 2012 1:24 AM
Does any one know how to place a 301 redirect on this website as there is an index page & a dot com page showing.

