1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can you 301 redirect Yahoo & Bing but not Google?

Discussion in 'White Hat SEO' started by RedPanda9, Jun 14, 2012.

  1. RedPanda9

    RedPanda9 Junior Member

    Joined:
    Mar 28, 2012
    Messages:
    178
    Likes Received:
    88
    I want to 301 redirect an older site that has been penalized in Google, but does well in the other search engines, to a new site. The site is currently de-indexed on G by me. It's an exact copy of the new site so I removed it to avoid duplicate content.

    I'm not sure if I blocking the googlebot from indexing and following will block it before it redirects. Anyone have any experience with this?

    Yahoo/MSN bot --->1st site--->redirect...>New site!

    Googlebot--->No Index, No Follow, No Crawl---> 1st site!
     
  2. ionutcib

    ionutcib Junior Member

    Joined:
    Feb 10, 2011
    Messages:
    116
    Likes Received:
    8
    Occupation:
    Java Programmer
    Use can use this php code:
    Code:
    if (![URL="http://www.php.net/strpos"]strpos[/URL]($_SERVER[‘HTTP_USER_AGENT'],"Googlebot")){ 
      header("HTTP/1.1 301 Moved Permanently");
      header("Location: [URL]http://www.redirect[/URL] to this site");
      exit;
    }
     
     
    Last edited: Jun 14, 2012
  3. dbyrn

    dbyrn Power Member

    Joined:
    Feb 20, 2010
    Messages:
    746
    Likes Received:
    224
    Occupation:
    helping people
    You can also use some .htaccess magic based on HTTP_USER_AGENT. Google it.

    D.
     
  4. Kaithe.Clarke

    Kaithe.Clarke Regular Member

    Joined:
    Jun 3, 2011
    Messages:
    397
    Likes Received:
    43
    Since the old site is deindexed in Google, why would it crawl it again? Google will crawl your second site only.
     
  5. RedPanda9

    RedPanda9 Junior Member

    Joined:
    Mar 28, 2012
    Messages:
    178
    Likes Received:
    88
    That's what I was thinking!? But no one has been able to confirm this. I would test myself but I can't risk the time if Google does indeed bypass the no crawl and follow the 301.

    I'm not sure what googlebot will see first, the robot.txt or the 301 redirect? I use htaccess.