Nithin
Nithin

Reputation: 1477

Creating a sitemapindex file using sitemap.txt

Using the XML sitemap, we can create a sitemap.xml file:

<sitemapindex>
 <sitemap>
  <loc>https://www.example.com/0.xml</loc>
 </sitemap>
 <sitemap>
  <loc>https://www.example.com/1.xml</loc>
 </sitemap>
</sitemapindex>

But how do we achieve the same using sitemap.txt file? Do we include it in robots.txt?

Upvotes: 3

Views: 4264

Answers (1)

unor
unor

Reputation: 96737

The Sitemaps protocol doesn’t support sitemap index files for the text format.

You have to provide multiple sitemap files (Other Sitemap formats → Text file):

Each text file can contain a maximum of 50,000 URLs and must be no larger than 50MB (52,428,800 bytes). If you site includes more than 50,000 URLs, you can separate the list into multiple text files and add each one separately.

Then specify all of the files when informing search engines about your sitemap, e.g., in your robots.txt:

Sitemap: https://example.com/sitemap_1.txt

Sitemap: https://example.com/sitemap_2.txt

Sitemap: https://example.com/sitemap_3.txt

Upvotes: 2

Related Questions