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%

2

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 May 24 '12 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/

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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