What a sitemap should contain
An XML sitemap should list canonical URLs that the site wants search engines to discover. Every listed URL should normally return 200, be indexable, and match the preferred protocol and hostname.
Common causes of “could not be read”
- The sitemap route returns HTML, an application error, a redirect loop, or a blocked response.
- The XML contains invalid characters, malformed markup, or an incorrect content type.
- The sitemap URL uses the wrong hostname or protocol.
- A firewall, CDN rule, maintenance mode, or authentication layer blocks crawlers.
- The submitted address is a webpage rather than the actual XML file.
Content problems inside a readable sitemap
Remove URLs that redirect, return errors, contain noindex, canonicalize elsewhere, require login, or represent tracking and duplicate variants. Use accurate lastmod values only when the page meaningfully changes.
Verification sequence
- Open the sitemap directly in a private browser session.
- Confirm a 200 response and an XML content type.
- Validate the XML structure.
- Sample listed URLs for status, canonical, and robots consistency.
- Reference the sitemap in robots.txt.
- Submit the exact sitemap URL in Search Console and review the returned error.
The site’s generated sitemap is available at /sitemap.xml. Review canonical consistency before adding large URL sets.