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?
Try this Redirect 301 /default.htm http://www.domain.com/ Code (markup): Or just remove the "[R=301,NC]"
Thanks, that worked. I've always read that 301 redirects were best for seo. So is there any drawbacks to doing it this way?