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

In my blog, I used the Day and name permalink structure for many days. Recently I came to know the SEO tips and made the permalink structure to Post name.

So I migrated from:




It's very simple for me.

But not for the WordPress. I have many posts interlinked with each other, hand coded in posts. And their paths're in archive structure. Now in post name structure they are producing 404 error.

I used the redirection plugin, but doing a 301 redirection as mentioned above (from & to), is not working for me. I cleared my WP Super Cache's cached files and the browser's too.

In Yoast's SEO Plugin I got another permalink redirection, but not the one I want.

Please remember that, I don't have any structure like: domain.com?p=2 or something like that. I just want the archive portion in the URL (%year%/%monthnum%/%day%) should be removed and my posts to be loaded.

To me both the structure are very simple and should redirect from one to another, as they both are in a common platform. But why the permalink structure changing won't redirect itself? Now I need to edit each and every page to edit the hand-coded links. :(

The question is: How can I solve the problem regarding permalink structure day and name to post name?

share|improve this question
up vote 2 down vote accepted

You could use a redirect in your server/site configuration, for example a RedirectMatch in your .htaccess:

RedirectMatch permanent ^/\d\d\d\d/\d+/\d+/(.*) /$1
share|improve this answer
Thanks @toscho. I'm thinking to proceed for it. But for assurance of well being, I've edited some old links as %postname%. If the .htaccess edit redirects me from archive url to post url, then I want the assurance that it'll not affect if it found the %postname% url by default. Thanks in advance. – Mayeenul Islam May 8 '13 at 11:10

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.