[wp-trac] [WordPress Trac] #51136: Third-party sitemap plugin returning 404 after disabling core's sitemap
WordPress Trac
noreply at wordpress.org
Wed Aug 26 11:50:42 UTC 2020
#51136: Third-party sitemap plugin returning 404 after disabling core's sitemap
--------------------------+------------------------------
Reporter: vaurdan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: 5.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by vaurdan):
@pbiron I was able to reproduce it in a fresh WordPress install, but with
a caveat: I had to use WordPress 4.4.2 initially.
Here are the steps:
1. Install WP 4.4.2 (pre-sitemap)
2. Install msm-sitemap (use the [https://github.com/Automattic/msm-
sitemap Git version (master)], as the plugin in the Repo still doesn't
disable core sitemaps with the filter) and generate a sitemap
3. example.com/sitemap.xml will return 200
4. Update 4.4.2 to 5.5
5. example.com/sitemap.xml will return 404
6. flush rewrite rules ( Settings > Permalink > Save )
7. example.com/sitemap.xml is still returning 404
8. apply the patch or the workaround, and it now returns 200.
I believe that the order of registering the rewrite rules (msm-sitemaps
registers before core sitemaps even exists) are a factor on this issue.
Let me know if you are able to reproduce using these steps.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51136#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list