[wp-trac] [WordPress Trac] #51324: sitemap.xml and sitemap-xml headers return html as content type

WordPress Trac noreply at wordpress.org
Mon Feb 28 16:46:36 UTC 2022


#51324: sitemap.xml and sitemap-xml headers return html as content type
---------------------------+------------------------------
 Reporter:  superpoincare  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Sitemaps       |     Version:  5.5
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by RavanH):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 This ticket is for WordPress 5.5 so this may have changed but
 `sitemap.xml` is not part of the WordPress core sitemaps. Not in 5.9
 anyway... It redirects to `wp-sitemap.xml`

 I verified the Content-Type headers for the index on `wp-sitemap.xml` and
 all sitemaps but always get `application/xml; charset=UTF-8`.

 This issue may be no longer valid or related to a (sitemap) plugin?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51324#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list