[wp-trac] [WordPress Trac] #51233: Remove "wp-" Prefix From /wp-sitemap.xml

WordPress Trac noreply at wordpress.org
Thu Sep 3 19:13:07 UTC 2020


#51233: Remove "wp-" Prefix From /wp-sitemap.xml
-------------------------+-------------------------------
 Reporter:  teamdnk      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Sitemaps     |     Version:  5.5.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by teamdnk):

 Right, I understand that the location is in the robots.txt file but we
 still receive many requests for `/sitemap.xml` even with our robots.txt
 specifying a different filename. Even with prefixing the filename there
 are still conflicts with existing SEO plugins or tools that use the
 `sitemap` query_var.

 Prefixing the query_var makes sense as it is more programmatic than pretty
 links. What I am proposing is that we keep the core sitemap as
 `/sitemap.xml` and use another method of being backward compatible. I am
 looking into some possibilities but even something that checks if the
 `^sitemap\.xml$` rewrite rule exists may allow it to be backwards
 compatible.

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


More information about the wp-trac mailing list