If I change my permalink structure, is there is a nice way to handle when people/bots go to the old structure?

I presume I can add use .htaccess and write a rule to redirect based on a 301 but is it possible in my case?

I currently have site.com/%year%/%month%/%day%/%postname% and I will just want site.com/%category%/%postname%

4 Answers 4


Dean's Permalink Migration has always worked for me. Install it before you change your permalinks.

  • afaik Dean's thing is no longer available / working.
    – cwd
    Commented May 24, 2012 at 5:32

For people, you can try Smart 404.


I would recommend two plugins for this: either Redirection - a good way to manage your changed urls / permalinks, and 404 Redirected, which is good for logging and manually fixing permalink errors.


You can typically perform the 301/302 redirect in the functions.php file of your theme.

Here is one of many references you can find - http://perishablepress.com/permanent-301-redirect-via-php-or-htaccess/

  • Seems like that reference only covers static urls. The question is clearly in regards to dynamic urls.
    – AlxVallejo
    Commented May 14, 2013 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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