[wp-trac] [WordPress Trac] #48223: parse_request(): When request has multiple matching rewrite rules, and matched rule returns 404 - iterate to next rewrite rule

WordPress Trac noreply at wordpress.org
Sat Dec 21 15:15:13 UTC 2019


#48223: parse_request(): When request has multiple matching rewrite rules, and
matched rule returns 404 - iterate to next rewrite rule
--------------------------+------------------------------
 Reporter:  apedog        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by apedog):

 Case in point:

 A database was created before custom post types existed, has the following
 hierarchical pages published: {{{recipes}}} and {{{recipes/chocolate-
 cake}}}
 At a later point a {{{Recipe}}} custom post type was registered with
 archive/front slug {{{'recipes'}}} and used for all new recipes. However
 the old pages were not converted to the new custom post types, and are
 still regular WP pages.

 As it stands, the published page {{{recipes/chocolate-cake}}} cannot be
 reached, neither through the permalink nor using {{{?p=123}}} notation.
 Instead returning a 404 page.

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


More information about the wp-trac mailing list