[wp-trac] [WordPress Trac] #16662: Permalinks not working with 'category'

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 28 00:54:10 UTC 2011


#16662: Permalinks not working with 'category'
--------------------------+--------------------
 Reporter:  Ipstenu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1.1
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by reviewmylife):

 Some more information to help you reproduce this - I got this on one of my
 blogs when I upgraded to 3.1. It is on an Apache server. All the category
 / tag pages now give a 404 error when accessed from the existing URLs.


 {{{
 WordPress address (URL): http://www.[MYBLOG].co.uk/blog
 Site address (URL): http://www.[MYBLOG].co.uk
 Permalink custom structure: /blog/%year%/%monthnum%/%day%/%postname%/
 Category base:
 Tag base:
 }}}


 Possibly of significance is that my WordPress address and Site address are
 different? On another of my blogs where they are the same there was no
 problem.

 The categories are supposed to be in this form (and all the category links
 that WordPress generates still points to this structure):
 http://www.[MYBLOG].co.uk/blog/category/japan/

 However the actual category page has now moved to:
 http://www.[MYBLOG].co.uk/category/japan/

 Which is why the existing URLs give a 404.

 If I add 'blog' to the 'Category Base' then all the single posts start
 giving a 404.

 As a temporary workaround I have added a 302 redirect from the location
 where the categories / tags are supposed to be to the location where they
 currently are:


 {{{
 RewriteRule ^blog/category/(.+)$ http://www.[MYBLOG].co.uk/category/$1
 [R=302,L]
 RewriteRule ^blog/tag/(.+)$ http://www.[MYBLOG].co.uk/tag/$1 [R=302,L]
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16662#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list