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

WordPress Trac noreply at wordpress.org
Wed Sep 16 14:42:09 UTC 2020


#51324: sitemap.xml and sitemap-xml headers return html as content type
---------------------------+-----------------------------
 Reporter:  superpoincare  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  5.5.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 If WordPress is installed at https://www.example.com, then the addresses
 https://www.example.com/sitemap.xml and https://www.example.com/sitemap-
 xml send "text/html; charset=UTF-8" as the Content-Type header.

 Of course these urls get redirected to wp-sitemap.xml which sends the
 correct header "application/xml; charset=UTF-8". Just wondering if the
 page before redirection should also.

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


More information about the wp-trac mailing list