[wp-trac] [WordPress Trac] #57858: If permalink structure is set to /%category%/%postname% , WordPress will match a /0/ path as a category archive

WordPress Trac noreply at wordpress.org
Sat Mar 11 07:42:10 UTC 2023


#57858: If permalink structure is set to /%category%/%postname% , WordPress will
match a /0/ path as a category archive
--------------------------------------------+------------------------------
 Reporter:  krdevio                         |       Owner:  (none)
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  Rewrite Rules                   |     Version:  6.1.1
 Severity:  normal                          |  Resolution:
 Keywords:  has-testing-info needs-testing  |     Focuses:
--------------------------------------------+------------------------------

Comment (by sarunraj):

 Welcome to core track, thanks for creating ticket

 I have tried to reproduce this issue and you are right it does resolve to
 category archive when you adding permalink **/%category%/%postname%.html**
 . if you add permalink **/%category%/%postname%/html** like this it will
 redirect into 404 page https://prnt.sc/x_kBuK_lVqFK.

 === Env
 WordPress 6.1.1
 Chrome 110.0.5481.177
 MacBook Air M1
 Theme: Twenty Twenty Three
 Gutenberg Editor

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


More information about the wp-trac mailing list