[wp-trac] [WordPress Trac] #54010: Redirect from /sitemap.xml to /wp-sitemap.xml needs to be 301 and not 302

WordPress Trac noreply at wordpress.org
Wed Aug 25 21:05:27 UTC 2021


#54010: Redirect from /sitemap.xml to /wp-sitemap.xml needs to be 301 and not 302
--------------------------+-----------------------------
 Reporter:  RedBMedia     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 /sitemap.xml is the standard naming nomenclature for XML sitemaps
 submitted to search engines. It is widely accepted in the search community
 and is the defacto default for most automated sitemap tools. Because of
 the term's popularity when a user accesses this file off of the WordPress
 root they are automatically redirected via 302 to WordPress' builtin XML
 site map at /wp-sitemap.xml

 This redirect should be a 301 not a 302, because 302's are ignored by
 search engines as they are meant to only be temporary. This issue is
 causing confusion for users that aren't familiar with the WordPress
 default and submitting /sitemap.xml instead to search engines who then
 ignore the redirect because it is a 302.

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


More information about the wp-trac mailing list