[wp-trac] [WordPress Trac] #61931: sitemap.xml redirect no longer works when using custom permalinks
WordPress Trac
noreply at wordpress.org
Mon Aug 26 23:58:23 UTC 2024
#61931: sitemap.xml redirect no longer works when using custom permalinks
--------------------------+-----------------------------
Reporter: gmariani405 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The XML sitemap functionality from WordPress 5.5 fails to handle the
/sitemap.xml -> /wp-sitemap.xml redirect if custom permalinks are used. If
you use any of the built-in permlinks modes, the redirect functions fine,
but if you set it to a custom permalink that is dis-similar to the built-
in ones it breaks because it is only looking to pull values from the
built-in regular expression matches. The /wp-sitemap.xml itself still
continues to work.
In the sites where the redirect breaks, I have this as the Custom
Structure:
{{{
/%category%/%postname%/
}}}
{{{
/%category%/%year%/%monthnum%/%postname%/
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61931>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list