Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Do I reference all my *.xml.gz sitemap files in robots.txt I have a website with over 1 million url's. As such, I have 1 sitemap.xml file which acts as an index to many sitemap0000.xml.gz,

@Samaraweera270

Posted in: #RobotsTxt #Sitemap

I have a website with over 1 million url's. As such, I have 1 sitemap.xml file which acts as an index to many sitemap0000.xml.gz, sitemap0001.xml.gz ... sitemap0030.xml.gz etc. files.

My question is: In my robots.txt file how do I specify the sitemap file?

Do I refernce the sitemap.xml only? As in the following:

User-agent: *
Allow: /
Sitemap: mysite.com/sitemap/sitemap.xml

Or do I have to specify ALL the *.xml.gz files in the sitemap too?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

Yes, only refer to the index file. (See under the "Using robots.txt" heading.) It will then lead the crawler to the others.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme