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

WordPress Trac noreply at wordpress.org
Thu Oct 20 09:08:30 UTC 2016


#12456: Canonical URL redirect issue with post_id/postname permalink structure
------------------------------------------+-----------------------------
 Reporter:  Frank.Prendergast             |       Owner:  dd32
     Type:  defect (bug)                  |      Status:  reopened
 Priority:  normal                        |   Milestone:  Future Release
Component:  Canonical                     |     Version:  2.9.2
 Severity:  normal                        |  Resolution:
 Keywords:  tested 3.3-early needs-patch  |     Focuses:
------------------------------------------+-----------------------------
Changes (by Niresh12495):

 * keywords:  has-patch tested 3.3-early => tested 3.3-early needs-patch
 * status:  closed => reopened
 * resolution:  worksforme =>
 * type:  enhancement => defect (bug)


Comment:

 @calvin_ngan this solution relatively works for all domains simply add
 this to your .htaccess, i have been using this on my blog
 [http://www.niresh.guru] since a long time but Wordpress must fix this
 with PHP so im reopening this ticket

 {{{
 RedirectMatch 301 ^/(\d+)/$ /?p=$1
 }}}

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


More information about the wp-trac mailing list