[wp-trac] [WordPress Trac] #12456: Canonical URL redirect issue with post_id/postname permalink structure

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 11 04:52:35 UTC 2010


#12456: Canonical URL redirect issue with post_id/postname permalink structure
-------------------------------+--------------------------------------------
 Reporter:  Frank.Prendergast  |       Owner:  dd32                  
     Type:  enhancement        |      Status:  accepted              
 Priority:  normal             |   Milestone:  3.1                   
Component:  Canonical          |     Version:  2.9.2                 
 Severity:  normal             |    Keywords:  has-patch tested early
-------------------------------+--------------------------------------------
Changes (by hlanggo):

 * cc: hlanggo (added)


Comment:

 /postname/post_id also has the same problem.  /postname shows the correct
 page but doesn't redirect to the canonical /postname/post_id

 With /postname/post_id (no ending slash) permalink structure:

 Canonical:  http://metroparkhotelcebu.com/mph/138  (/postname/post_id)
 Redirect OK:  http://metroparkhotelcebu.com/138/mph  (/post_id/postname)
 No redirect:  http://metroparkhotelcebu.com/mph  (/postname)
 404:  http://metroparkhotelcebu.com/138  (/post_id)

 Yes, I am aware that using postname first causes performance issues but
 back when I decided on it, http://codex.wordpress.org/Using_Permalinks
 said it was okay to start with postname.  Thankfully, my sites are small
 so the performance problems aren't debilitating.

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


More information about the wp-trac mailing list