Changing permalink structure and redirecting?
-
Hi:
I just changed my permalink structure from /yyyy/mm/post-slug to /post-slug (for a variety of good reasons).
However, my old links (external – not under my control – links to posts that contain the date string) don’t redirect.
What is the best way to redirect the old permalink structure to the new?
Note: I tried adding this:
RewriteRule ^[0-9][0-9][0-9][0-9]/[0-9][0-9]/(.*) /$1 [L,R=301]
to the .htaccess file (I’m not the best at this type of code). But this doesn’t work. It has no effect.
Any suggestions are much appreciated!
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Changing permalink structure and redirecting?’ is closed to new replies.