Robots.txt file for two CMS in same domain

sinbad007

Newbie
Jun 17, 2016
16
1
Hi,

Yesterday, one of my friend asked this question.

I have a website example.com, which is created using Drupal CMS with a sub domain blog "http://www.example.com/blog" which has Wordpress CMS. I would like to block few posts in "http://www.example.com/blog/examplepost/ 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, http://www.example.com/robots.txt file for Drupal and http://www.example.com/blog/robots.txt for Wordpress or will the main domain robots file(Drupal) will work for "http://www.example.com/robots.txt"(Wordpress).

The same question applies for XML Sitemap.
 
Back
Top
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