Closed jakepm closed 3 years ago
I can't recreate this; I've checked a bunch of our production sites and they all validate correctly with a Content-Type
header of application/xml
. Do you have an example you can share?
For anybody else who has this issue and find this thread, the cause was actually our server enforcing trailing slashes on URLs. Sitemap was not excluded from this rule, so the sitemap.xml request was being redirected to sitemap.xml/ thus giving an incorrect Content-type header when validating the file.
Description
Sitemap.xml generated by the SEO plugin does not have the correct Content-type header.
Steps to reproduce
Additional info