[wp-trac] [WordPress Trac] #29997: Custom permalink free text same of category base

WordPress Trac noreply at wordpress.org
Thu Oct 16 16:43:53 UTC 2014


#29997: Custom permalink free text same of category base
--------------------------+----------------------
 Reporter:  Murphz        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Permalinks    |     Version:  4.0
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by DrewAPicture):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi Murphz, thanks for the report and welcome to Trac :)

 I can confirm the same behavior, though this is not a bug. The reason
 you're getting 404s on posts when using 'blog' as the category base in
 addition to the custom permastruct, is that the rewrite is matching for
 categories over posts.

 In other words, you get a 404 for this:
 example.com/blog/category-name/example-post-permalink

 and a category archive listing for this:
 example.com/blog/category-name/

 It's possible to handle multiple routing like this through the same
 rewrite endpoint, but it requires filtering rewrites and definitely falls
 outside the scope of what core will handle for you.

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


More information about the wp-trac mailing list