SitemapScan Blog

Sitemap Index Files: A Guide for Large Websites

Once your site grows beyond 50,000 URLs, a single sitemap file won't cut it. Here's how to structure sitemap indexes properly for large e-commerce, news, and enterprise sites.

When to use a sitemap index

You need a sitemap index file when your site has more than 50,000 URLs, when your sitemap file would exceed 50MB uncompressed, or when you want to logically segment different parts of your site into separate sitemaps.

The structure of a sitemap index

A sitemap index file contains <sitemap> entries instead of <url> entries. Each entry has a <loc> pointing to a child sitemap URL and an optional <lastmod>.

Segmenting by content type

For large sites, the best practice is to create separate sitemaps for different content types: sitemap-pages.xml, sitemap-products.xml, sitemap-blog.xml, sitemap-images.xml.

About this article

This article is part of the SitemapScan blog and covers XML sitemap, robots.txt, crawlability, or related technical SEO topics.

FAQ

When do you need a sitemap index file?

You need one when a single sitemap would exceed the 50,000 URL or 50 MB uncompressed protocol limits, or when you want logical sitemap segmentation.

Should child sitemaps be grouped by content type?

Usually yes. Splitting by content type or site section makes large sitemap estates easier to manage, debug, and monitor.

Related pages

Open the full article