Recently, I moved all pages from subdomain.domain.com/<lang>/ to <lang>.subdomain.domain.com and submitted new sitemap.xml in Google Search console inteface.

From the server logs, I see that GoogleBot keeps trying to index old pages located at subdomain.domain.com/<lang>/ and throws errors in Coverage report. How can I stop Google to index those pages?

Will adding

Disallow: /en/
Disallow: /it/
Disallow: /fr/

into robots.txt help?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.