1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can any .htaccess experts figure this out?

Discussion in 'White Hat SEO' started by The Night Fox, Mar 15, 2012.

  1. The Night Fox

    The Night Fox Newbie

    Joined:
    May 23, 2010
    Messages:
    19
    Likes Received:
    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!
     
  2. hi.imandrew

    hi.imandrew Junior Member

    Joined:
    Nov 22, 2009
    Messages:
    159
    Likes Received:
    42
    Location:
    Arkansas, USA
    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.