[wp-trac] [WordPress Trac] #12456: Canonical URL redirect issue with post_id/postname permalink structure
WordPress Trac
noreply at wordpress.org
Thu Oct 20 08:26:31 UTC 2016
#12456: Canonical URL redirect issue with post_id/postname permalink structure
----------------------------------------+-----------------------------
Reporter: Frank.Prendergast | Owner: dd32
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: Canonical | Version: 2.9.2
Severity: normal | Resolution: worksforme
Keywords: has-patch tested 3.3-early | Focuses:
----------------------------------------+-----------------------------
Changes (by calvin_ngan):
* status: accepted => closed
* resolution: => worksforme
Comment:
I've found the answer only for redirecting /%post_id%/ to
/%post_id%/%postname%/
Add this to your .htaccess, change the domain name and the http/https
RedirectMatch 301 ^/(\d+)/$ https://www.geckoandfly.com/?p=$1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12456#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list