Can you 301 redirect Yahoo & Bing but not Google?

RedPanda9

Regular Member
Joined
Mar 28, 2012
Messages
224
Reaction score
100
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!
 
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:
You can also use some .htaccess magic based on HTTP_USER_AGENT. Google it.

D.
 
Since the old site is deindexed in Google, why would it crawl it again? Google will crawl your second site only.
 
Since the old site is deindexed in Google, why would it crawl it again? Google will crawl your second site only.

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.
 
Back
Top