Fail

The sitemap isn't valid

The short version

Fix the sitemap's XML.

What it means

We found your sitemap but couldn't read it as a sitemap: the XML is broken, it isn't a urlset or sitemapindex, or the file listed in robots.txt answers with an error. The detail says which.

Why it matters

Search engines skip a sitemap they can't parse, so none of the pages it lists get the help a sitemap gives. A sitemap that answers 404 or 500 is reported as an error in webmaster tools and wastes crawling.

How to fix it

  1. Open the sitemap address in a browser; it should show XML, not an HTML page.
  2. Validate the file: every <url> needs a <loc>, and characters such as & must be escaped as &amp;.
  3. Use the namespace http://www.sitemaps.org/schemas/sitemap/0.9 on the root element.
  4. If you compress it, serve the .gz file as it is, without a second layer of compression.
  5. Fix or remove the Sitemap: line in robots.txt if it points to a file that no longer exists.

Check it worked

Run the SEO audit again. The sitemap should be read without errors and the finding should be gone.