Can any .htaccess experts figure this out?

0 replies
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!
#experts #figure #htaccess

Trending Topics