/    Sign up×
Community /Pin to ProfileBookmark

Did I create a language vs search engine issue?

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?
  • to post a comment
    SEOWeb Hosting

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @NogDogDec 27.2021 — Not my area of expertise at all, but got me a little curious, and this seems like a good place to start: https://developers.google.com/search/docs/advanced/crawling/managing-multi-regional-sites

    They seem okay with 2 separate, country-specific domains, but you may want to look into the stuff they mention about [u][hreflang annotations](https://developers.google.com/search/docs/advanced/crawling/localized-versions)[/u], perhaps?

    Or, you could wait for an actual expert to chime in. ;)
    Copy linkTweet thisAlerts:
    @tracknutauthorDec 27.2021 — Thanks, that's a great start. These annotations can be put into a sitemap, the first practical use for one I've had!
    ×

    Success!

    Help @tracknut spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...