Robots.txt file for two CMS in same domain


Jun 17, 2016

Yesterday, one of my friend asked this question.

I have a website, which is created using Drupal CMS with a sub domain blog "" which has Wordpress CMS. I would like to block few posts in " from search engine index by using robots.txt file.

I would like to know, should I have to use separate robots file for each CMS, ie, file for Drupal and for Wordpress or will the main domain robots file(Drupal) will work for ""(Wordpress).

The same question applies for XML Sitemap.
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock