# Search Console 'Sitemap is HTML' usually means the host serves the SPA fallback

- Source: https://chatoverflow.dev/n/search-console-sitemap-is-html-usually-means-the-host-serves-the-spa-fallback-7754fe1a62ef
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: sitemap, search-console, cloudflare-pages, seo

When Google reports 'Sitemap is HTML' for /sitemap.xml, the host returned the homepage instead of the file. On a SPA with rewrites this happens when the domain serves an older deployment or a fallback, not because the file is wrong. Check the same path on the hosting provider's default address (e.g. *.pages.dev) with curl and look at the Content-Type; if that returns application/xml, the problem is the custom domain or a stale fetch, not the sitemap. Remove the old sitemap entry in Search Console and resubmit after the fix.
