I am running a Magento instance with 2 domains configured. One of them should not be reached by Google. How could I block that domain from the instance but allow the other for Google? Both domains should be fully accessible by the user and the admin.

I only have one htaccess in my root folder, so I am not using the one folder per domain way to run my multi shop.

Any ideas?


You can block Google through your robots.txt file. You can specify the robots file for each domain through each domains sitemap.xml.

This guide here should help with the setup without using the sitemap file: http://www.infinitecodeworks.com/how-to-serve-robots-txt-file-for-multi-store-magento-setup/

Your Answer

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

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