XML sitemaps · Sitemap URLs

Server error (5XX) URL in sitemap

The XML sitemap lists a URL below this page that returns 500 Internal Server Error, which wastes crawls and reduces search engines' trust in the sitemap.

How this page is built

/sitemap.xml lists this page and, straight after it, /tests/server-error-5xx-url-in-sitemap/error/. A Netlify redirect rule serves a plain error page at that address with a 500 status code. Nothing on the site links to it, so the sitemap is the only place it appears.

Why it matters

Every URL in a sitemap should return 200. A server error wastes a crawl and adds an error to Search Console. Repeated server errors also make Google crawl the whole site more slowly, and when many sitemap URLs fail, search engines trust the sitemap less.

How to check it

Crawl every URL in the sitemap and check the status codes. Crawl tools list sitemap URLs that return 5XX errors. Search Console’s page indexing report shows them too.

How to fix it

Fix the server error, or remove the URL from the sitemap until the page works. Generate the sitemap from pages that build successfully.

Back to all tests