Why is the SEOPress sitemap detected as an HTML page?

A sitemap is detected as HTML when its URL returns a normal web page, a security challenge, an error template, or cached HTML instead of XML. Check the raw response and the Content-Type header while logged out. Follow redirects to see where the request actually ends.
Exclude SEOPress sitemap and XSL URLs from page caching, CDN transformation, and optimization. Confirm that the sitemap feature is enabled and save WordPress permalinks. Remove conflicts from another SEO plugin or a physical file, and check whether a multilingual or redirect rule sends XML requests to the home page.
Firewalls and bot protection sometimes show an HTML verification page only to remote crawlers. Allow legitimate search-engine access to the sitemap without requiring cookies or JavaScript. Once the URL consistently returns valid XML, use SEOPress’s health check and resubmit the sitemap index in Search Console.