Is there a to redirect only traffic that comes from webcrawlers (mainly google) while maintaining the "normal" user traffic intact ?
My scenario is as follows :
A client had a website on a domain ( www.domain-1.com ) which he sold (the domain). The website is now being moved to a second domain (www.domain-2.com ) .
Is there a way to tell crawlers that the SAME website was moved from domain-1 to domain-2 while not forgetting that domain-1 now has different content of it's own ? (and thus somehow maintaining the old domain-2 indexed links and rankings ?)
Usually, I know in PHP i do a normal permanent redirect sending headers like :
header('Location: http://www.example.com/', true, 301);
exit;
But in the above case , I am not sure if I should use :
Is that even possible ?
Please any advice would be greatly helpful.
Usually, it considered to be a bad practice to show different content to crawlers than users. Also letting google index the same content in two different domain could hurt the pagerank.
If you are sure that its a good idea to keep the same content in separate domains, try using the cross-domain rel="canonical" link element to mark the content that got moved from domain-1
to domain-2
, leaving the new content unmarked. Google's crawlers should understand these.