Skip to main content

Local & AI SEO

How to audit an XML sitemap

A sitemap is a list of the URLs you want indexed. Auditing it means checking that the list matches reality — that everything on it should be there, and that everything that should be there is on it. Most sitemaps fail both tests.

Last reviewed by James Henderson

How do you audit an XML sitemap?

Fetch it as a crawler does and confirm a 200 status with an XML content type and no redirect. Then status-test every URL: anything returning 301, 404 or 410, anything canonicalised elsewhere, anything noindexed and anything blocked in robots.txt does not belong. Finally, diff against a crawl to find what is missing.

Frequently asked questions

What belongs in a sitemap?

URLs that return 200, are self-canonical, are not noindexed, are not blocked in robots.txt, and are pages you genuinely want indexed. Everything else is noise that dilutes the signal.

Should redirects be listed?

No. A sitemap is a list of final destinations. Anything returning 301, 302, 404 or 410 should be removed and replaced with its destination if that destination should be indexed.

What are the size limits?

50,000 URLs and 50MB uncompressed per file. Beyond that, split by section and publish a sitemap index — splitting by content type lets you compare submitted against indexed per section.

Does lastmod matter?

Only if it is accurate. A lastmod that changes on every build regardless of content is misinformation and will be discounted. Set it from real modification timestamps or omit the element entirely.

What if submitted and indexed counts differ a lot?

That usually points at page quality or crawl budget rather than the sitemap. The sitemap is a request to crawl, not an instruction to index.

Want this looked at for your business?

Twenty minutes on the phone usually finds the one thing holding the number back. James answers himself.

You reach James, not a call centre. No answer means he is on a job — leave a message and he calls back.

Call James: 832-338-2926

BayouEdge AI Assistant

Ask about our services

Hi! I'm the BayouEdge AI assistant. I can help you learn about our marketing services for Houston and South Texas businesses. What can I help you with?

Powered by BayouEdge AI