301 redirect when changing server and host

Discussion in 'Site & Server Administration' started by fishfinder, Jan 20, 2009.

  1. #1
    Hey all,

    I'm running into some problems with Google webmaster tools and my sitemap.

    About a week ago, I moved from one host/server to a new host/server.

    I'm wondering how to properly redirect, possibly using a 301 in order to get around any duplicate content issue G might have.

    I have no idea how to properly insert this into my old .htaccess.

    Google's cache is still showing pages from prior to the move, although new pages are getting indexed from the new server. My sitemap is showing a large amount of errors, and I think this redirect may solve that, but I'm not sure!

    any help would be much appreciated!

    dave
     
    fishfinder, Jan 20, 2009 IP
  2. JoelJonathan

    JoelJonathan Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If all you did was change to a new host/server without changing your site's domain, file extensions, or file names then you shouldn't have to 301 redirect anything - all you need to do is generate a new xml sitemap on your new server and then submit it to Google under their Webmaster Tools section while you are logged into a Google account.

    If you did change your site's domain, file extensions, or file names then you will need to do a 301 redirect in your .htaccess for each separate page like this:

    redirect 301 /old-file-name.html http://www.newdomain.com/new-file-name.php
    Code (markup):
     
    JoelJonathan, Jan 20, 2009 IP
  3. plugandplay

    plugandplay Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Your new host should be able to help you out. Depending on who your host is they may have a different way of doing 301 redirects than the .htaccess file. Mine does.
     
    plugandplay, Jan 20, 2009 IP