Technical SEO

XML sitemap

An XML sitemap is a file that lists the URLs on a site you want search engines to know about, often with the date each page was last modified.

Sitemaps help search engines discover pages, especially on large or new sites, or pages that are not well linked. Large sites use a sitemap index file that points to several smaller sitemaps, each holding up to 50,000 URLs.

In more detail

A good sitemap contains only canonical, indexable pages that return a 200 status code. Including redirected, noindexed or broken URLs sends mixed signals. Accurate lastmod dates help crawlers prioritise updated pages. Submit the sitemap in Google Search Console and reference it in robots.txt, then watch the report for errors.

Why it matters

A sitemap does not guarantee indexing or rankings, but it is a cheap, reliable way to make sure search engines know about every page you care about.

Example

A static site generates its sitemap automatically at build time, listing every service page, guide and glossary term. When a new guide is published, it appears in the sitemap within the same deploy.

FAQ

XML sitemap: quick answers

Does every site need an XML sitemap?

Small, well-linked sites can do without one, but sitemaps are cheap and useful for almost everyone.

Should I include every page in my sitemap?

Only canonical, indexable pages you want in search. Leave out redirects, duplicates and noindexed pages.

Free audit

Find out where you stand in search and AI answers.

Get a free audit of your SEO, AI visibility and email setup. We send a short, specific report with the three changes that would move the needle most.