SEO · Guide

XML sitemaps, and what they actually do

A sitemap tells search engines which pages you consider worth crawling. It helps discovery. It does not make pages rank, and it will not rescue a page Google has decided is not worth indexing.

The short answer

An XML sitemap lists the URLs you want search engines to crawl, with the date each was last modified. Include only canonical, indexable pages that return a 200 status. Submit it in Search Console and reference it in robots.txt. It helps discovery, particularly on large or poorly linked sites, and it is not a ranking factor.

What belongs in it

A sitemap full of redirects and noindexed pages sends mixed signals: you are asking Google to crawl pages you have separately told it to ignore.

What it does and does not do

DoesDoes not
Help search engines discover pagesGuarantee indexing
Signal which pages you consider importantImprove rankings
Communicate when content changedFix thin or duplicate content
Help on large or poorly linked sitesReplace internal linking

This is the most common misunderstanding. A page that is in the sitemap and still not indexed is being judged on its merits, and adding it again will not change that.

Setting it up

  1. Generate it automatically. Most CMS platforms do this natively or through a plugin.
  2. Keep it under 50,000 URLs and 50 MB per file, splitting into an index of multiple sitemaps if needed.
  3. Reference it in robots.txt with a Sitemap line.
  4. Submit it in Google Search Console and Bing Webmaster Tools.
  5. Check the coverage report afterwards for pages Google chose not to index and why.

Reading the coverage report

Crawled but not indexed is the one worth acting on. It means the page was assessed and rejected, which is a content problem rather than a technical one.

Frequently asked questions

Do I need an XML sitemap?

Most sites benefit, and large sites or sites with weak internal linking benefit most. A small, well-linked site will usually be crawled fully without one. It costs nothing to have and removes one possible reason for pages being missed.

Does a sitemap improve rankings?

No. It aids discovery, which is a prerequisite for ranking, but it is not a ranking factor. A page in your sitemap competes on the same terms as any other.

How often should a sitemap update?

Automatically, whenever content changes. Most CMS platforms handle this. Manually maintained sitemaps drift out of date quickly and end up listing pages that no longer exist.

Should I include every page?

Only canonical, indexable pages returning 200. Exclude noindexed pages, redirects, error pages and duplicates. Listing pages you have told Google to ignore sends contradictory signals.

My page is in the sitemap but not indexed. Why?

Being listed does not guarantee indexing. Google decides based on quality, uniqueness and perceived value. Check Search Console for the specific status. Crawled but not indexed means it was assessed and rejected, which is a content issue.

Rahul Gupta

Founder of HyberX, a digital growth agency working with brands across the US, Europe, the Middle East and India. Writes on web design, paid media and conversion optimisation.

More about Rahul · LinkedIn

Related reading

Pages not getting indexed?

We will check whether it is a sitemap problem, a crawl problem or a content problem.

Book a Growth Call