Webmasters Stack Exchange is a question and answer site for pro webmasters. 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 recently changed my Wordpress category structure a bit, changing some of the names and placing some under different parent categories.

I don't use category name in my post URLs, so that's not a problem. But my category archive pages are indexed and have page rank I don't want to lose.

So I need to redirect: "/category/old_cat_name" to "/category/new_cat_name".
Or in some cases to /new_cat_name/new_sub_cat. I gather that I can't do this though the WP Redirection plugin and that I have to modify my .htaccess.

Can someone show me what lines to add there--or is there another better way to do this? Thanks.

share|improve this question
Why do you say the Redirection plugin can't do this? You'll probably have to create a bunch of name-specific redirects rather than a single pattern-based one, but it can still manage the actual rules for you. – Su' Feb 17 '11 at 19:01

You'll need to write a rule for each category so I hope you don't have a lot. But the basic syntax would be like this:

redirect 301 /category/old_cat_name_1 /category/new_cat_name
redirect 301 /category/old_cat_name_2 /new_cat_name/new_sub_cat
share|improve this answer

Your Answer


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