tech
How to fix: sitemap.xml reachable
Why this matters
Sitemap.xml tells crawlers which URLs exist and how recently they changed. It's the difference between being discovered and being missed.
Background
A reachable /sitemap.xml is the fastest way for search crawlers to discover new + updated pages. Without it, crawlers rely on link discovery — slow + incomplete for large or new sites.
References
sitemaps.org protocol · Google Search Central
How to fix
Code snippet for each stack we cover. Pick the one matching your server / framework.
nginx
No server config — generate the XML.
apache
Same.
cloudflare
Same.
wordpress
Yoast SEO + RankMath auto-generate /sitemap_index.xml + add the Sitemap: line to robots.txt.
flask
Add /sitemap.xml route emitting XML from your URL model. Submit to Google Search Console.
express
Use sitemap library OR write a route that builds the XML from a DB query.
rails
Use the sitemap_generator gem.
Verify it's working
curl -sI https://your-site/sitemap.xml — 200 + Content-Type: application/xml.
Want to know if your site has this issue?
Run a free 53-check audit — security, GDPR, NIS2, and technical SEO.
Audit my site →