1

Hi there I need to temporarily instruct Google to exclude from indexing all URLs that contain the following suffix: ?lang=it How can I achieve this?

5
  • What options have you considered?
    – GDVS
    Apr 18, 2018 at 8:46
  • Asking here on prowebmasters! Now seriously... :-) I have no idea! Apache rewrite condition? Or?
    – Riccardo
    Apr 18, 2018 at 10:49
  • I'd think we would have answered this one before, but I can't find a duplicate. Apr 18, 2018 at 11:29
  • 1
    To be clear, do you really mean indexing (= Googlebot may still crawl the pages), or do you mean crawling (= Googlebot may still index the pages)? And should the solution only work for Google Search, not also other search engines?
    – unor
    Apr 18, 2018 at 19:27
  • @Riccardo My point is — hopefully you've searched Google and made some attempt to figure it out before asking.
    – GDVS
    Apr 19, 2018 at 10:27

1 Answer 1

1

You can tell Googlebot how to handle your site's parameters in search console here: https://www.google.com/webmasters/tools/crawl-url-parameters?hl=en&siteUrl=

Simplly click "add parameter" and then add lang=it. Select yes from the dropdown menu. From there you can tell Googlebot not to index pages with that parameter in your URL.

1
  • I am not sure, what is OP mean by exclude...He is facing duplicate content issue? or he just don't want to index those it lang pages? or don't want to allowed Googlebot at all.
    – Goyllo
    May 20, 2018 at 12:11

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.