WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Assume you have a static HTML site with its own robots.txt and sitemap.xml at www.mysite.com.

Now you add WordPress blog as an adjunct to the site at: www.mysite.com/blog

  1. Do you need to have a second robots.txt? One for the root html site and one for WP blog?
  2. Do you need to have a second .htaccess? One for the root html site and one for the WP blog?
  3. Do you need a separate sitemap.xml? One for the root html site and one for the WP blog?
share|improve this question

Assuming you are accessing your blog as a subdirectory, and not as a subdomain:

  1. No - robots.txt is only valid in the site root
  2. Yes - well, at least it's sensible to have one inside /blog
  3. No - sitemap.xml is only useful in the site root
share|improve this answer
Thank you! How would you then go about the sitemap? 1. If you use the google xml sitemap WP plugin, then it won't capture the HTML site that's at root. 2. Or do I need to take the XML sitemap that's generated from the /blog, and then add the sitemap info for the HTML site? 3. Or, because the static HTML site is already well-indexed, simply leave it all alone and just keep the sitemap for the WP blog only at: www.mysite.com/blog/sitemap.xml? Many thanks! – TheW Feb 28 '13 at 2:28
3 is not totally correct. – Mark Kaplun Feb 28 '13 at 4:01
Please do elaborate. – TheW Mar 1 '13 at 2:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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