Docs SEO
XML sitemap
Checks that your site has a valid XML sitemap, found through robots.txt or at /sitemap.xml, so crawlers can find all your pages.
What it checks
We use the first Sitemap line in robots.txt. If there is none, we try /sitemap.xml. It passes when the answer is a success and the start of the file contains a urlset or sitemapindex element.
The URLs inside are not checked here, but they are used to pick the inner pages we read and the update dates for the freshness check.
- PassA valid sitemap was found.
- FailNo valid sitemap at the address we tried.
Why it matters
A sitemap lists the pages you want indexed. It helps crawlers find pages that are not well linked, and its last modified dates tell them what changed.
If your sitemap lives somewhere else and robots.txt does not mention it, this check fails even though the sitemap exists. Crawlers have the same problem finding it.
How to fix it
Let your CMS or framework generate the sitemap so it stays current. Include only pages that load, are indexable and are their own canonical. Add its full address to robots.txt and submit it in Google Search Console.
Platform notes
WordPress has a built-in sitemap at /wp-sitemap.xml, and SEO plugins usually replace it with their own. Both add a Sitemap line to the robots.txt WordPress serves; a hand-made robots.txt file on the server needs the line added.
These platforms publish /sitemap.xml for you.
Turn on the automatic sitemap in the SEO settings.
Add a sitemap.ts file in the app folder, or generate one at build time.
Your report shows what this check found on your site. Pro shows the exact fix for your site. See pricing.
Questions
Do I need a sitemap for a small site?
A small, well linked site can be crawled without one, but a sitemap is cheap to add and gives crawlers a full list of pages with dates. This check fails without one.
Free, about 30 seconds, with every other check included.