Back to guides

XML Sitemaps: Giving Crawlers a Clean Map of Your Site

A sitemap is a discovery aid rather than a ranking lever. How to keep yours discoverable and honest, and which URLs should never appear in it.

A sitemap is a discovery aid. It tells search engines which URLs you consider worth crawling and roughly when each last changed. On a small site with clean internal linking it changes little. On a large site, a new site, or one where useful pages sit 4 clicks from the homepage, it is often the difference between a page being found this week and next quarter. Two properties make a sitemap useful: it is discoverable, and it is honest. Discoverable means it is referenced from robots.txt or submitted directly, and it lives at a stable URL. Honest means every URL in it is one you would want indexed, which is to say canonical, returning 200, and open to crawling. The most common defect is a sitemap generated once and never regenerated, listing URLs that now redirect or 404 while omitting everything published since. The second is a sitemap containing every URL the CMS can produce, including tag archives, paginated duplicates and parameterized variants. Both teach search engines to trust the file less. These checks confirm the sitemap can be found, parses as valid XML, and uses the index and child structure correctly. They then read every URL it lists back against your own directives, because a file that nominates blocked, noindexed or non-canonical URLs is arguing with itself, and search engines settle that argument by trusting the file less.

Sitemap not found

Why it matters

A sitemap helps search engines find your important pages faster and more consistently.

How we check it

The sitemap was checked for presence via robots.txt reference or well-known location.

How to fix it

Link your XML sitemap from robots.txt with a Sitemap directive and the absolute sitemap URL, or submit it directly to Google Search Console. Include the canonical URLs you want search systems to consider; a sitemap supports discovery but does not guarantee that every listed URL will be crawled or shown.

Sitemap XML invalid

How we check it

The complete sitemap was parsed as XML and checked for sitemap namespace and document shape, absolute same-site loc values, and valid W3C lastmod dates or timezone-qualified datetimes.

How to fix it

Fix the field-level XML sitemap errors listed in the evidence. Ensure the document is complete, uses the sitemap namespace and shape, contains absolute same-site loc values, and uses valid W3C lastmod dates or timezone-qualified datetimes.

robots.txt declares a sitemap on another website

Why it matters

Crawlers following this declaration spend the site's crawl budget on another domain's pages, usually a leftover from an unfinished migration.

How we check it

Each Sitemap: line in robots.txt was compared against the domain serving the file.

How to fix it

Host the sitemap on the domain it describes and update the Sitemap: line in robots.txt. An off-domain declaration usually marks a half-finished migration or a robots.txt served by the wrong site.

Sitemap URL has noindex

Why it matters

An accidental noindex or robots block quietly removes pages from search results without any visible error on the site.

How we check it

Sitemap URLs were checked for noindex directives.

How to fix it

Remove noindex from pages listed in your sitemap, or remove them from the sitemap. Why this matters: Sitemap URLs with noindex create a direct contradiction that wastes crawl budget and signals poor site maintenance to search engines.

Sitemap URL blocked in robots.txt

How we check it

Sitemap URLs were checked against robots.txt Disallow rules.

How to fix it

Remove robots.txt Disallow rules for pages listed in your sitemap. Why this matters: Blocking sitemap URLs in robots.txt creates a contradiction—search engines see you recommending pages you simultaneously forbid them from accessing, which erodes trust in your sitemap.

Sitemap URL not canonical

Why it matters

A sitemap that lists non-canonical URLs sends search engines conflicting instructions about which version of a page is the real one.

How we check it

Sitemap URLs were checked for canonical consistency.

How to fix it

Fix sitemap URLs that point to non-canonical pages. Sitemap should list canonical URLs. Why this matters: Non-canonical URLs in sitemaps split crawl budget between duplicates and may cause search engines to index the wrong version of your content.

See How Your Site Ranks

Get a free AI-powered SEO report with actionable findings and priority fixes for your website.

No signup required.