How can I tell Google to index my site using different get variables?



www.example.com?lg=en (prevent any index from this link, by default my site is in english)



  • Just to clarify this, by variables, I think you mean parameters that indicate the language of the content?
    – dan
    Commented Feb 18, 2016 at 5:53
  • 1
    @dan right, sorry let me fix that
    – Trevor
    Commented Feb 18, 2016 at 6:08
  • Sorry if I don't understand, but wouldn't a site map do just fine?
    – William
    Commented Feb 18, 2016 at 6:29

1 Answer 1


Given that these are translating into different languages and I'm assuming you want Google to surface the French site in French searches (and etc.), you may want to check out the hreflang tag (https://support.google.com/webmasters/answer/189077?hl=en). You would specify the language for each URL as well as the country code. For English, you'd specify the version of the URL with no query string. Something like:

<link rel="alternate" href="http://www.example.com?lg=sp" hreflang="es-us" />

<link rel="alternate"href="http://www.example.com" hreflang="en-us" />

There is also a cool hreflang generator at: http://www.aleydasolis.com/en/international-seo-tools/hreflang-tags-generator/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.