If you happen to have a hosting account with 1and1.com with hosting Powered-By: ASP.NET, and tried to use their redirect service offered? You may notice that the redirect that offer is a 302 temporary redirect. This isn’t the ideal redirect that we want to place on a domain for a 301 Domain Redirect, when changing from one domain to another.
We want to pass on any traffic, incoming link juice, traffic, etc and etc. With a 301 permanent redirect, we can achieve this. I’m not sure why 1and1.com never added this option, as they surely have many customers that have their domains registered and hosted with them.
There is an easy solution!
For your OldDomain.com, you will want to keep this on a hosting account, do not use their redirect service as this is a 302 temporary redirect.
Create an index.asp page. The only bit of coding that you’ll need is listed below. Most likely you will need to delete the web.config file, or just rename it so that it won’t be used with the hosting system. Just replace the domain name below with yours, and upload the index.asp page to your account via your FTP program. Just to note, you will want to delete or rename any other index pages, as you just want the index.asp page to be the page that is picked up by the spiders.
<%@ Language=VBScript %>
Response.Status=”301 Moved Permanently”
As always, make a full backup of your files before making any changes.
When you have your index.asp page uploaded, test the redirect with http://web-sniffer.net/ to verify that the redirect is working and reading as 301.