I have a multi-language site and am a bit confused as to how search engines are or are not crawling through it. To simplify, let’s say I have two domains: pancakes.com and crepes.fr, both pointing to the same physical host. PHP code on that host looks at $_SERVER[‘HTTP_HOST’] (and other things) to determine the user’s preferred language and displays the site in that language. So the point here is that there is one code base and two domain names.
The questions then…
1. Is Google going to crawl and index both a french and an english version of my site? That would be preferable. Or have I somehow caused Google to decide there isn’t a canonical version of the site and in fact I have the same site on two domains, which should be penalized.2. Should I use some Apache trickery to redirect crepes.fr to pancakes.com to appease Google in some way, and if so, is there any way from PHP that I can still get the “original” domain name crepes.fr so that I can do my language selection?