301 redirect and 404 error page

Discussion in 'Site & Server Administration' started by joseph_lee, Jul 19, 2006.

  1. #1
    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?
     
    joseph_lee, Jul 19, 2006 IP
  2. sreyas

    sreyas Well-Known Member

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    You could enquire about ISAPI_Rewrite on your server. Only your hosting provider can help you in this case.
     
    sreyas, Jul 21, 2006 IP