Skip to content
Devtoolry

XML sitemaps

Errors in the XML sitemap

WarningMedium priority

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

  1. Remove URLs that do not answer 200, are noindex or canonicalise to another page.
  2. Generate the sitemap from the same rules that decide which pages are indexable.
  3. 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:

Sources

Browse every problem in the SEO Issues Library.