[wp-trac] [WordPress Trac] #51233: Remove "wp-" Prefix From /wp-sitemap.xml
WordPress Trac
noreply at wordpress.org
Thu Oct 15 22:17:21 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 close | Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):
* keywords: needs-patch => needs-patch close
Comment:
Personally I don't really see a need for changing the prefix just because
some bots try to directly access that URL.
Note that WordPress automatically redirects `/sitemap.xml` to `/wp-
sitemap.xml` anyway.
A filter for the URL / prefix is not really doable as rewrite rules are
persisted in the database. But you can easily add your own rewrite rules,
remove the existing ones, and use the `wp_sitemaps_stylesheet_index_url`
filter to use your own custom URL.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51233#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list