301 redirect mod_rewrite loop error on some browsers

Discussion in 'Apache' started by web_junkie, Apr 26, 2012.

  1. #1
    Hi, I have a small problem. I am rewriting my .html urls to seo friendly urls but also redirecting the old url to the new ones. So, now I have and infinite loop on some browsers. This is what i have :

    Options FollowSymlinks
    RewriteEngine On
    RewriteBase /

    RewriteRule ^new-url$ old_url.html
    RewriteRule ^old_url\.html$ http://www.mydomain.com/new-url [R=301,L]

    Let along each rewrite rule works fine on all browser. However, when I tried to use them together, I get infinite loop error on chrome and safari. Any one knows how to fix this problem?

    Thank you
     
    web_junkie, Apr 26, 2012 IP