3

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

2

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

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

For people, you can try Smart 404.

0

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.

0

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/

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

Your Answer

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

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