Playbook
seo
easy
Fix a sitemap.xml returning 404
Google cannot find your sitemap. Here is how to put one back at /sitemap.xml in under 10 minutes.
10 minutesLast reviewed 2026-06-09
What is happening
Lemwatch tried to fetch https://yourdomain.com/sitemap.xml and got a 404. Google Search Console shows "Sitemap could not be fetched". New pages stop getting indexed within days.
Fix it in 3 steps
/sitemap_index.xml (point Google there). Shopify: sitemap lives at /sitemap.xml automatically — if missing, the store is unpublished. Webflow, Wix, Squarespace: sitemap at /sitemap.xml is auto-generated when SEO is enabled in site settings.Sitemap: https://yourdomain.com/sitemap.xml on its own line.If you generate your sitemap manually
Make sure it:
<?xml version="1.0" encoding="UTF-8"?> (no BOM, no leading whitespace).https://...), not relative paths.Common gotchas
/sitemap.xml after fixing.Disallow: /sitemap.xml is not present./sitemap.xml/ and /sitemap.xml are different URLs. Pick one and stick to it.What this doesn't do
This playbook is for the missing-sitemap case, not for sitemaps that exist but list broken URLs. For that, see the sitemap health guide.