Redirect loop

Discussion in 'Search Engine Optimization' started by vansterdam, Dec 6, 2008.

  1. #1
    I'm having some problems setting up a 301 redirect in my .htaccess file. For some reason my code works on one of my websites, but on another it gives me a redirect loop error. The particular line that is causing problems is this:
    redirect 301 /default.htm http://www.domain.com/ [R=301,NC]

    The problem is that sometimes this page shows up in Yahoo search results. The page never existed. So I'm not sure where Yahoo even got the default.htm part. I think it is limiting my rankings though.

    Does anyone have any idea why this would cause a redirect loop?
     
    vansterdam, Dec 6, 2008 IP
  2. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #2
    Try this
    Redirect 301 /default.htm http://www.domain.com/
    Code (markup):
    Or just remove the "[R=301,NC]"
     
    Abhik, Dec 6, 2008 IP
  3. vansterdam

    vansterdam Notable Member

    Messages:
    3,145
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    245
    #3
    Thanks, that worked. I've always read that 301 redirects were best for seo. So is there any drawbacks to doing it this way?
     
    vansterdam, Dec 6, 2008 IP