Is your XML sitemap actually working? A 5-minute check
A sitemap is a list of the pages you want search engines to find. It does not force anything into Google, but it helps crawlers discover new and updated pages, especially on large sites or sites with few internal links.
Sitemaps break more often than people expect: a plugin is removed, a migration changes the URL, or the file starts listing pages that no longer exist. Nothing on the website looks wrong, so nobody notices.
The 5-minute check
- Open it. Try
https://yourdomain.com/sitemap.xml. Many CMSs use another name, such assitemap_index.xmlorwp-sitemap.xml. It should load as XML, not as an error page or your home page. - Check robots.txt. Open
https://yourdomain.com/robots.txtand look for a line likeSitemap: https://yourdomain.com/sitemap.xml. This is how crawlers find the sitemap without you submitting it anywhere. - Spot-check the URLs. Open five URLs from the sitemap. Each should load normally, with no redirect, no 404 and no
noindex. - Check the count. Does the number of URLs roughly match the number of pages you want in search? Far fewer usually means sections are missing. Far more usually means tag pages, filters or test pages slipped in.
- Look at Search Console. If you use Google Search Console, open Sitemaps and check the status and the last read date.
Common problems and fixes
| Problem | Fix |
|---|---|
| The sitemap URL returns 404 | Turn the sitemap feature back on in your CMS or SEO plugin, then update robots.txt with the correct URL. |
| It lists redirected or deleted pages | List only final URLs that return 200. Regenerate the sitemap after a migration. |
| It lists noindex pages | Remove them. A sitemap should only contain pages you want indexed. |
| It uses the wrong domain (http, or without www) | Use the same version of the domain as your canonical URLs. |
lastmod is today's date on every page | Only change lastmod when a page really changes. Google uses it when it is consistently accurate. |
Get an alert when the sitemap disappears
A one-time check only covers today. I built SEO & AI Search Monitor on the Apify Store to watch this every week. It checks that the sitemap and robots.txt are still reachable, finds pages that turned noindex or started returning errors, and alerts you only when something got worse. You pay per page checked, with no API key. See the current price on the tool's Pricing tab.
Summary
- The sitemap should load as XML and be listed in robots.txt.
- It should contain only working, indexable, canonical URLs.
- Keep
lastmodhonest. - Re-check after every migration, redesign or plugin change.
Related guides: Did your pages turn noindex? · Is your robots.txt blocking ChatGPT, Perplexity or Claude?