My hosting server is a windows server, therefore, I inserted the following code to do a 301 redirect: <%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", "http://www.mysite.com" %> <html> It works but it can redirect page by page, since I need to redirect the whole site, I checked with my hosting server and they suggested to use 404 error pages to redirect the whole site. Besides this way, have any other ways to redirect the whole site on a windows server? Will this way be penalized by Google?
You could enquire about ISAPI_Rewrite on your server. Only your hosting provider can help you in this case.