[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
Thu Apr 9 05:48:22 UTC 2026
#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-test-info needs-testing needs- | Focuses:
patch |
-------------------------------------------------+-------------------------
Comment (by kalpeshh):
I verified testcases below. And everything seems to be working as
expected.
**Permalink**: `/%category%/%postname%.html`
**Test case 1:**
`http://localhost:8889/uncategorized/hello-world.html`
✅ Working as expected and not giving 404
**Test case 2:**
`http://localhost:8889/0/hello-world.html`
✅ Working as expected and not giving 404 (as category index exist)
**Test case 3:**
`http://localhost:8889/0/
❌ Working but should have given 404
**Test case 4:**
`http://localhost:8889/1/
✅ Working as expected and giving 404
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57858#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list