XML sitemaps
Errors in the XML sitemap
The sitemap lists URLs that redirect, return errors, are noindex or canonicalise elsewhere. A sitemap should list only the pages you want indexed.
What it means and why it matters
Search engines treat the sitemap as your list of preferred URLs. Entries that redirect or fail waste crawl time and make the whole file less trustworthy as a guide.
Common causes are deleted pages still in the sitemap, http:// entries on an https site, and sitemaps generated from the database without checking the indexing settings.
How to fix it
- Remove URLs that do not answer 200, are noindex or canonicalise to another page.
- Generate the sitemap from the same rules that decide which pages are indexable.
- Resubmit it in Google Search Console and Bing Webmaster Tools.
Find it on your site
These free tools check for errors in the xml sitemap and run without a sign-up:
Sitemap Validator
Validate an XML sitemap or sitemap index: format, URL limits, duplicates, lastmod dates, robots.txt blocks, and the status of every listed URL (404s, redirects, noindex).
Sitemap Finder
Find the XML sitemap of any website: from robots.txt, the home page and the default paths of WordPress, Yoast, Rank Math, Shopify and Wix, with URL counts.
XML Sitemap Generator
Generate an XML sitemap from a list of URLs or paths: duplicates removed, special characters escaped, lastmod dates added and big lists split into an index.
Related issues
Sources
Browse every problem in the SEO Issues Library.