Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am having a Wordpress blog on my CentOS server. There is no sitemap.xml in the root directory but there is sitemap_index.xml file in the root directory which contains the following code:

<?xml-stylesheet type="text/xsl" href="http://mywebsite.com/wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <sitemap>
        <loc>
            http://mywebsite.com/post-sitemap.xml
        </loc>
        <lastmod>
            2012-12-18T19:47:47+00:00
        </lastmod>
    </sitemap>

    <sitemap>
        <loc>
            http://mywebsite.com/page-sitemap.xml
        </loc>
        <lastmod>
            2012-12-18T17:32:49+00:00
        </lastmod>
    </sitemap>
</sitemapindex>

My question: Which sitemap should I submit to Google Webmasters Tools? Options are:

  1. Only sitemap_index.xml
  2. Only post-sitemap.xml and page-sitemap.xml
  3. All 3 (sitemap_index.xml, post-sitemap.xml and page-sitemap.xml)
  4. Any other, please let me know.
share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Just submit the master sitemap. It's purpose is to tell them about the other sitemaps so there is no need to submit them.

share|improve this answer
    
Thanks John. By master sitemap you mean 'sitemap_index.xml'? –  iSumitG Dec 18 '12 at 20:21
    
Yes. That is exactly what I meant. :) –  John Conde Dec 18 '12 at 20:22
add comment

According to Google Webmaster Tools support article http://support.google.com/webmasters/bin/answer.py?hl=en&answer=71453

When you've created your Sitemap index file, save it and submit it to Google. As long as you've uploaded and saved all your Sitemaps, you don't need to submit each Sitemap individually. Just submit the Sitemap index file and you're good to go. You can submit up to 500 Sitemap index files for each site in your account.

Sample code on their page

share|improve this answer
add comment

Your Answer

 
discard

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.