Bengaluru and Erode, India — working with clients in other time zones

SEO Algorithms & Updates

XML sitemaps: what belongs in one and what quietly breaks them

What an XML sitemap actually does for SEO, what should and should not be included, and the common errors that make one less useful than it should be.

Search data reviewed on a laptop

An XML sitemap is a file listing the URLs on your site you want search engines to be aware of, submitted through Search Console or referenced in robots.txt. It does not guarantee indexing, but it makes discovery more efficient, particularly for large sites or pages that are hard to find through normal internal linking alone.

What should be included

A sitemap should include only canonical, indexable URLs that you genuinely want Google to crawl and consider for indexing — your actual content pages, not every technical URL variation your site might generate.

  • Canonical versions of your indexable content pages.
  • URLs that return a 200 (successful) HTTP status.
  • Pages you actually want indexed, not test pages or internal tools.

What quietly breaks a sitemap's usefulness

Including non-canonical URLs, redirecting URLs, 404 pages, or noindexed pages sends confusing, contradictory signals — you are telling Google 'crawl this' via the sitemap while simultaneously telling it 'do not index this' via a noindex tag or redirect. This inconsistency reduces Google's trust in the sitemap overall.

  • Redirecting URLs listed instead of their final destination.
  • 404 or removed pages that were never cleaned out of the sitemap.
  • Non-canonical duplicate URLs alongside their canonical versions.
  • Pages with a noindex tag still listed in the sitemap.

A sitemap full of contradictory signals — noindexed pages, redirects, duplicates — teaches Google to trust your sitemap less over time, which defeats its entire purpose.

Sitemap size and structure

A single sitemap file can hold up to 50,000 URLs and must stay under 50MB uncompressed. Larger sites should use a sitemap index file referencing multiple individual sitemaps, often split logically by content type (products, blog posts, categories) for easier maintenance and diagnosis.

Keeping it dynamically current

A sitemap generated dynamically and automatically, reflecting your current live, canonical, indexable URLs, is far more reliable than a manually maintained static file — automation avoids the drift that causes most sitemap problems in the first place. Google's sitemap documentation covers the full specification.

Frequently asked questions

Does submitting a sitemap guarantee those pages get indexed?

No, a sitemap only aids discovery — indexing still depends on Google's assessment of each page's quality, uniqueness and other ranking-adjacent signals.

Should I include every page on my site in the sitemap?

No — only include pages you genuinely want indexed. Utility pages, internal search results, and any page you have deliberately noindexed should be excluded.

How often should a sitemap update?

Ideally automatically and immediately whenever content changes, rather than on a fixed manual schedule — most modern CMS platforms and site generators handle this natively.

If you are not sure whether your sitemap is helping or confusing Google, get in touch for a quick technical check.

The takeaway

Only include canonical, indexable URLs that return a 200 status in your sitemap — a sitemap cluttered with redirects, 404s or non-canonical URLs actively confuses Google rather than helping it.


Written by Fibvo — Bengaluru and Erode, India — working with clients in other time zones. Questions, or think we have it wrong? Tell us.

Keep reading

Related articles

Next step

Tell us what you are trying to grow.

Send the problem in a paragraph. We will reply within one working day with an honest view of whether we can help, and what it is likely to cost.

Call +91 93451 90983 WhatsApp us