Build a sitemap index file to organize sitemaps for a site exceeding the per-sitemap URL limit

domain: sitemaps-org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Split your URLs across multiple individual sitemap files so that no single file exceeds 50000 URLs or 50 MB when uncompressed
  2. Create a sitemap index file (sitemapindex XML format) that lists the location and optional lastmod for each child sitemap file
  3. Ensure the sitemap index file itself does not reference more than 50000 child sitemaps and does not exceed the 50 MB size limit
  4. Compress all sitemap files with gzip to reduce transfer size and serve them with the correct Content-Type header (application/xml or text/xml)
  5. Submit only the sitemap index URL to Google Search Console; Google will discover and process each child sitemap automatically from the index

Known gotchas

Related routes

Design a multi-level-safe sitemap index structure for a site with far more URLs than one sitemap index file can reference
developers.google.com · 6 steps · unrated
Build a programmatic sitemap generation pipeline for a large site with database-driven URL lists, sitemap index files, and scheduled updates
sitemaps.org · 6 steps · unrated
Build and manage XML sitemaps correctly including size limits, sitemap index files, and lastmod handling
developers.google.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans