WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure:


The new site has the following permalink structure:


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
Were you able to figure this out or are you still looking for help? – Jonathan Wold Jan 22 '12 at 17:22

WordPress 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.

share|improve this answer
Let's assume for a moment that this is not a fresh WP install and that old posts need 301 redirects. WordPress doesn't handle this out of the box – AlxVallejo May 14 '13 at 17:48
@AlxVallejo, sure it does. If you're having issues, you should open a new question about why that isn't working for you (especially instead of downvoting a perfectly legitimate answer to someone else's question). – Matthew Boynes May 14 '13 at 19:02
Your saying that if you change the permalink structure WordPress will automatically redirect the old permalink structure which is incorrect. – AlxVallejo May 14 '13 at 19:24
@AlxVallejo Depending on the redirect structure, yes, it is correct. For instance, take an existing WP install with a "Day and name" permalink structure, and change it to /%category%/%postname%/ and the day and name urls still work and 301 redirect to the new permalinks. – Matthew Boynes May 14 '13 at 20:55
Hmm, sorry for the downvote, that's not the case for me though - I switched exactly as you said and was not redirected. – AlxVallejo May 15 '13 at 15:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.