Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 861
Nithin Avatar asked Oct 15 '25 12:10

Nithin


1 Answers

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
like image 102
unor Avatar answered Oct 17 '25 09:10

unor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!