Can any .htaccess experts figure this out?

The Night Fox

Newbie
Joined
May 23, 2010
Messages
19
Reaction score
1
Ok, so I used the following code to redirect an old category and all it's posts to a new category, but for some reason I'm having problems.

RewriteRule ^old-category-1/?(.*) h t t p : / / w w w .mywebsite. c o m /new-category-2/$1 [R=301,L]

I have used the above code to redirect other unrelated categories on my website using the above code but for some reason this time I'm getting the error ""error 310 too many redirects"". The old category redirects to the new category, but any posts from the old categopry don't redirect to the new category but instead try and add themselves onto the new category like mywebsite . c o m/new-category/old-post/

Any input would be much appreciated!
 
What it sounds like from the "error 310 too many redirects" is that the old category redirects somewhere, and .htaccess thinks it needs to redirect that to a new place, basically creating a redirect loop.

Double check the links and make sure they are pointing to the correct urls.
 
Back
Top