I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure:
domain/CATEGORY/POSTNAME/
The new site has the following permalink structure:
domain/YEAR/MONTH/POSTNAME/
I need to set up a 301 redirect in htaccess that correctly redirects the old posts. I've found a lot of rewrite rules for the opposite way (YEAR/MONTH/POSTNAME/ to CATEGORY/POSTNAME/) but none for the way I need.
I prefer not to use a plugin. It appears that all the redirection plugins don't work. But, if Dean's Permalink Migration is recommended I'll use it.
I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure:
domain/CATEGORY/POSTNAME/
The new site has the following permalink structure:
domain/YEAR/MONTH/POSTNAME/
I need to set up a 301 redirect in htaccess that correctly redirects the old posts. I've found a lot of rewrite rules for the opposite way (YEAR/MONTH/POSTNAME/ to CATEGORY/POSTNAME/) but none for the way I need.
I prefer not to use a plugin. It appears that all the redirection plugins don't work. But, if Dean's Permalink Migration is recommended I'll use it.
Share Improve this question edited Nov 19, 2011 at 23:51 scpers0n asked Nov 19, 2011 at 23:21 scpers0nscpers0n 536 bronze badges 1- Were you able to figure this out or are you still looking for help? – Jonathan Wold Commented Jan 22, 2012 at 17:22
1 Answer
Reset to default 1WordPress actually 301's these out of the box! It handles a number of basic structures by default, so unless you're switching to or from a very unique configuration (e.g. /blog/%postname%/
), it will probably work.