XML Sitemap Best Practices

SEO

XML sitemap best practices include including only canonical, indexable URLs that return a 200 status (excluding noindex, redirected, or error pages), splitting large sitemaps into multiple files of at most 50,000 URLs each, updating automatically upon publishing new content, and including an accurate last-modified date (lastmod) for each URL.

A well-maintained XML sitemap doesn’t guarantee indexing, but it functions as an efficient discovery list for crawlers, especially for new pages or ones not well connected through internal linking.

Why it matters

Including problematic URLs (noindex, 404, redirected) in the sitemap sends contradictory signals to Google and can dilute overall trust in the sitemap’s accuracy, which is why periodically auditing sitemap content is a recommended technical practice.

← All terms in SEO Full glossary