XML sitemap
XML sitemap. The sitemap is how crawlers discover every page and learn when each one changed. Without it, deep pages on a small site may never be fetched.
Key takeaways
- Check: XML sitemap is a site-level check in the technical group.
- Fix: Static sites: generate sitemap.xml at build time with <lastmod> dates.
- Not this: lastmod set to today for every URL on every build; it stops meaning anything.
- Effort: 10 min, site-level check; the audit drafts the fix from your own page.
Why does “XML sitemap” matter?
Declaring it in robots.txt means every crawler finds it without you submitting it to each one.
| Check | XML sitemap |
|---|---|
| Layer | site-level check |
| Group | Technical |
| Typical effort | 10 min |
| Weight in the score | 2 on a scale of 1 to 3 |
| Checked by | the website, the Chrome extension and the WordPress plugin (same analyser, 69 checks) |
How do you fix “XML sitemap”?
- WordPress generates one at /wp-sitemap.xml (core) or /sitemap_index.xml (Yoast, Rank Math). Open it to confirm it works.
- Static sites: generate sitemap.xml at build time with <lastmod> dates.
- Add "Sitemap: https://yoursite.com/sitemap.xml" to robots.txt.
- Submit it in Google Search Console and Bing Webmaster Tools.
What should you not do?
- A sitemap with noindexed or redirected URLs in it.
- lastmod set to today for every URL on every build; it stops meaning anything.
Example
robots.txt: Sitemap: https://yoursite.com/sitemap_index.xml
Frequently asked questions
How long does it take to fix "XML sitemap"?
About 10 min. It usually needs a developer or the hosting panel.
Is "XML sitemap" checked per page or for the whole site?
It is a property of the whole site, so fixing it once covers every page. The website, the Chrome extension and the WordPress plugin run the same check.
What is the most common mistake with "XML sitemap"?
A sitemap with noindexed or redirected URLs in it.
Sources
About the author
Related checks
Does your page pass this check? The audit runs all 69 and drafts the fix for you.