Hi, I want to move one of websites to a new domain. All the website is in ASP and I am getting good traffic as well. But for some reasons I have to change the domain. Could you please help me out with 301 redirect as I don't want to get penalised from google. Also how shall I change the back links to point to new domain? I mean all at once or slowly? Thanks
by using the 301 flag, your forcing (not just) google to update thier cache, and by providing a forwarding link you're giving it something to update too. I'd do it all at once, and I'd do it with : RewriteRule ^(.*)$ http://www.domain.com/ [R=301,L] or more likely : RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
<%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader("Location", "http://www.yourdomain.com") %>
I think this is for IIS server. So where should I put this code? I have also a site that I will redirect to new one but it's in IIS server hosting.
Alternatively you can put code into the global.asa file to deal with all requests; if you look on here the .Net version was given recently and it shouldnt take much to back that up to Classic ASP