Thursday, August 05, 2010 5:31 PM
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?
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
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
Location: [The url specified in IIS]
Date: Fri, 13 Aug 2010 23:50:32 GMT
Will this solve my purpose.
Saturday, August 14, 2010 9:01 AM
Tuesday, October 19, 2010 9:20 AM
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.
Friday, November 19, 2010 4:45 PM
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"
This may solve your prob.
Thursday, January 20, 2011 1:34 PM
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?
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.