[wp-trac] [WordPress Trac] #9512: Permalink redirection fails due to conflict with attachments

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 11 22:51:46 GMT 2009


#9512: Permalink redirection fails due to conflict with attachments
--------------------------+-------------------------------------------------
 Reporter:  firebird75    |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  low           |   Milestone:  Unassigned
Component:  Permalinks    |     Version:  2.7.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Here is a tricky one. I am not 100% sure that this isn't design intent.

 So I have changed my permalink structure change from
 /%category%/%postname%/ to /%postname%/

 The redirection of the posts works fine for all posts except when the post
 contains a picture that has the same name as the post name.

 For instance, if I have a post called "nice car" which is accessible
 through the category "car review" and that contains an attachment called
 "nice car" :
 - before the migration, I can access the post through /car-review/nice-
 car/
 - after the migration, if I access through /car-review/nice-car/, I get an
 empty post with the picture "nice-car" and I am not redirected to /nice-
 car/ post (new permalink structure).

 The picture remains in fact accessible from any directory /toto/nice-car/,
 /titi/nice-car/, even if it doesn't exist. It isn't a big deal. The issue
 is rather that it is accesible through an url that will have priority over
 the redirection to the post because of this.

 I understand that this is a special case ;)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9512>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list