Redirecting re-slugged categories
-
I have started renaming and reslugging my categories, and downright deleting some of them. I do want the former links to redirect to their relevant targets, with the links to deleted categories redirecting to my root. I got the deleted category to redirect to the root but I can’t seem to get a renamed cat to lead to its new slug name. For example:
I had a category slugged as
brave-new-worldand I want it to redirect to the new name/slug of the category,scienceso I put this in my htaccess:Redirect 301 /category/brave-new-world/ http://onefinejay.com/category/science/However in the Address bar of my browser it does this instead:
http://onefinejay.com/category/science/?category_name=brave-new-world/and it shows me the standard No Posts message. Am I doing something wrong with my htaccess redirect code or is am I encountering an incompatibility with WordPress’ own htaccess?
The topic ‘Redirecting re-slugged categories’ is closed to new replies.