Skip to content

Technical pillar / check sitemap-xml

XML sitemap: can crawlers find the list of pages you want indexed?

We look for your XML sitemap where crawlers look for it: the Sitemap: lines in robots.txt first, then four common addresses. A sitemap lists the pages you want in search, and Bing says its lastmod dates help it decide what to recrawl for AI-powered search.

By , Founder and CEO, Own The Climb · Last updated

This is how we check it

We look for an XML sitemap, the list of pages you want search engines to index, in the places crawlers check.

  • We try Sitemap: addresses from robots.txt in order, then common locations, within the lookup’s request and time limits.
  • An XML sitemap, a sitemap index, an RSS or Atom feed, or a plain list of addresses all count, as they do for Google.
  • No sitemap at the locations we tried is a medium finding. We report timeouts, refusals and server errors as unread. We do not score them as a missing sitemap.

Our reasoning behind this

A sitemap is how you tell Google which pages you want in its results, and it helps new or deep pages get found. Google describes a sitemap as merely a hint, so it helps a crawler find your pages without guaranteeing that any of them will be indexed.

How we would fix it on your site

  1. Generate a sitemap that lists the preferred address of every page you want in search, with a lastmod date that changes only when the content does.
  2. Split it under a sitemap index once it passes 50,000 addresses or 50 MB.
  3. Add "Sitemap: https://your-domain/sitemap.xml" to robots.txt and submit the sitemap in Google Search Console.

Once your change is live, run the audit again and review the new findings alongside the pages it covered.

How to make the change on your platform

What to do on each platform
PlatformWhat to do
WordPressWordPress has served /wp-sitemap.xml since version 5.5. Yoast SEO and Rank Math replace it with /sitemap_index.xml. Use one sitemap provider for the site.
Shopify, Squarespace and WixEach generates /sitemap.xml for you and keeps it current. Make sure the pages you want found are published and not hidden from search in the page settings.
Next.jsAdd app/sitemap.ts that returns your URLs with a lastModified date taken from your content, and reference it from app/robots.ts.

What we want you to review

  • List the sitemap’s address in robots.txt when crawlers need to discover it there, including when you have also submitted it in Search Console.
  • Use the full live address in the Sitemap directive; a relative path or staging address points readers at the wrong location.
  • Set lastmod to the date the page content actually changed. A fresh sitemap-generation time does not establish that every page was updated.
  • List the canonical pages you want indexed and remove redirected, noindex and missing addresses.

The exact rules our audit applies

We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.

The inputs we describe for this check

Where we found a sitemap, and how. We try every Sitemap: line in your robots.txt in file order, then /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml and /wp-sitemap.xml on your site.

A response counts as a sitemap when its body is a <urlset> or <sitemapindex> XML document, an RSS or Atom feed, or, at an address ending in .txt, nothing but full URLs one per line, because Google reads all of these as sitemaps; an HTML page served at /sitemap.xml does not pass.

A feed lists only recent posts, so we keep looking past it and use it only when no XML or text sitemap is found at any address we try. A .gz address counts as a compressed sitemap only when its body starts with the gzip signature; we do not decompress it.

The lookup makes at most 6 requests, waits up to 10 seconds for each, and stops after 25 seconds in all. The check reports which address worked, or every address we tried and what each returned. It does not grade the URLs inside the sitemap; the pages we audit are chosen partly from it, and the coverage panel lists them.

When a sitemap is found, we follow up to 10 of the page addresses it lists on your site, within the audit's shared link budget, one redirect at a time, and read each page's robots meta tag, X-Robots-Tag header and canonical.

We also count the addresses it lists on another host than your site (www and the bare domain count as one site), because the sitemap protocol says every address must be on the same host as the sitemap and that crawlers drop the rest.

Our full reasoning

Google says a sitemap is how you tell it which pages you want to see in its results, that a single sitemap holds at most 50,000 URLs or 50 MB uncompressed, and that you can declare it with a Sitemap: line anywhere in robots.txt or submit it in Search Console.

Google also says plainly that a sitemap "is merely a hint: it doesn't guarantee that Google will download the sitemap or use the sitemap for crawling URLs on the site", and that it ignores <priority> and <changefreq> but uses <lastmod> when it is "consistently and verifiably" accurate.

For AI answers, Bing wrote on 2025-07-31 that "sitemaps remain a foundational signal for ensuring comprehensive URL coverage" and that lastmod helps it "prioritize URLs for recrawling and reindexing" for AI-powered search. A page that no crawler finds cannot be indexed or cited.

How we score what we find

Measured, once per audit, for the site. No sitemap at any address we tried is a MEDIUM technical finding. A sitemap that lists only addresses on another host is MEDIUM too, since crawlers drop every entry; one that lists some is LOW.

Its confidence is HIGH when we tried every address, and MEDIUM when we stopped at the request limit before trying them all. A sitemap found passes and shows its address and size. For a sitemap index we request up to three sitemaps it lists, the ones most likely to hold your main pages.

An index that lists no sitemap address is a MEDIUM finding. When every one we request answers 404 or is not a sitemap, it is a MEDIUM finding, at MEDIUM confidence when the index lists more than three, because the others may work. When some do and others work or did not load, it is a LOW finding that names each one.

When every sitemap an index lists is compressed (.gz), we request only the first, because we never decompress them for page addresses; if that one is missing, it is a LOW finding, since we did not check the others. When none we requested loaded and none is missing, it is not measured, here and in the line that says where the pages we read came from.

A .gz address counts as a compressed sitemap only when its body is real gzip, so an HTML page there is not a sitemap. When the addresses we tried did not answer in time, we show the sitemap as not read, name the slow addresses, and do not count it toward the score.

A sitemap that refuses our crawler (403) or answers with a server error is shown as could not be read, here and in the line that says where the pages we read came from, never as no sitemap, and does not count toward the score.

Listed pages that are not there (404, 410) or ask not to be indexed are a MEDIUM finding; listed addresses that redirect, answer with a server error, or name another page as canonical are LOW. Google says that with a sitemap "you're telling search engines about which URLs you prefer to show in search results", so each entry should be the live, canonical address of a page.

How sure we are of each result

HIGH when every address was tried, MEDIUM when the request limit stopped the lookup early. A sitemap submitted only in Search Console, at an address that is neither in robots.txt nor one of the four common ones, is invisible to us, and to any crawler that has not been told about it.

How to fix it, in full

Generate an XML sitemap that lists the canonical address of every page you want in search, with a lastmod date that changes only when the page content changes. Split it into several files under a sitemap index once it passes 50,000 URLs or 50 MB. Add a line "Sitemap: https://your-domain/sitemap.xml" (the full address) to robots.txt, then submit the same address in Google Search Console and Bing Webmaster Tools.

Open the address in a browser to confirm it returns XML, and re-run the audit.

The sources we rely on

What we have changed on this page

  • · A sitemap that lists pages on another host, often the old domain after a move, is now a finding: MEDIUM when every address it lists is elsewhere, LOW when some are. The sitemap protocol says crawlers drop those entries, and the coverage panel now says when that left this audit with no page to choose from the sitemap.
  • · When we find a sitemap, we now follow up to 10 of the pages it lists on your site (fewer on a slow site or when the audit's link budget is mostly spent): a page that is not there or asks not to be indexed is a MEDIUM finding, and a redirect, a server error or a page naming another canonical is LOW.
  • · Rewritten in plain words: what we check, why it matters and how to fix it come first, and the full rules sit one click down. We corrected the full rules to describe only what we check today.
  • · RSS and Atom feeds and .txt sitemaps, which Google reads as sitemaps, now count as sitemaps, alone or listed in an index; a feed is used only when no XML or text sitemap is found. A sitemap index that lists no sitemap is now a MEDIUM finding.
  • · For a sitemap index, every listed sitemap we request is graded, not only the first: when all of them are missing it is MEDIUM (at MEDIUM confidence when the index lists more than we request), and one that is not there among working ones is LOW.
  • · This page now names which listed sitemap we read for an index, and that a .gz sitemap needs a real gzip body.
  • · A sitemap index with a missing or unreadable listed sitemap, and an HTML page at a .gz address, no longer read as a sitemap found. A sitemap that refuses our crawler no longer reads as no sitemap in the report line about where the pages came from.
  • · Initial publication of how the sitemap lookup works, what it tries and what it does not judge.