Why is this causing an endless loop in IE and not Firefox

Discussion in 'Apache' started by MOG, Jan 19, 2008.

  1. #1
    To make it even stranger, it only causes an endless loop in SOME versions of IE... frustratingly neither of my desktop machines, but a few friends told me abuot it and it is replicated on my wifes dell laptop as well...


    The code in my .htaccess re. the rewrite engine is:


    RewriteEngine on

    RewriteRule ^category/([0-9]*)/([a-zA-Z-]*).html$ category.php?cId=$1&cName=$2 [L,NC]
    RewriteRule ^category/([0-9]*)/([a-zA-Z-]*)/([0-9]*).html$ category.php?cId=$1&cName=$2&page=$3 [L,NC]

    #RewriteRule ^game/([0-9]*)/([a-zA-Z-]*).html$ game.php?gId=$1&fname=$2 [L,NC]

    RewriteRule ^game/([0-9]*)/(.*)\.html$ game.php?gId=$1&fname=$2 [L,NC]



    SO: THIS WORKS FINE IN FF, BUT NOT IN SOME VERSIONS OF IE....

    Any thoughts or ideas people?

    thanks in advance


    MOG
     
    MOG, Jan 19, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Try removing the [L,NC] to see if it makes a difference (from all the rules).

    Jay
     
    jayshah, Jan 19, 2008 IP
  3. MOG

    MOG Well-Known Member

    Messages:
    2,219
    Likes Received:
    163
    Best Answers:
    0
    Trophy Points:
    180
    #3
    hasnt helped... it still loops in IE and still works fine in FF...
     
    MOG, Jan 19, 2008 IP
  4. PinoyIto

    PinoyIto Notable Member

    Messages:
    5,863
    Likes Received:
    170
    Best Answers:
    0
    Trophy Points:
    260
    #4
    currently I am not sure what is the problem with IE... because in my side the script is working both browser.

    But I am starting to modify and update the script so maybe I can give you a copy when I am done with the update..
     
    PinoyIto, Jan 19, 2008 IP
  5. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    not sure on that one, mabye try putting the longer categories rewrite line on top, see if that helps, and make sure you have [L] on the rules (it means stop processing).

    I had a similar problem on one of my sites, it ended up been a redirection inside the application (due to cookie settings), so it might be a possibility that it's your application and not the rewrite rules that are causing it.
     
    powerspike, Jan 19, 2008 IP
  6. MOG

    MOG Well-Known Member

    Messages:
    2,219
    Likes Received:
    163
    Best Answers:
    0
    Trophy Points:
    180
    #6
    Thanks Ed, any help on those lines would be much appreciated... I understand its very hard to identify when your browsers are working fine with it...

    At first I thought it was my friend that had the problem, but now many people have told me, and as mentioned in the OP on my wifes laptop it doesnt work in IE (but does in FF).

    I will re-add the [L] back in then, thanks for your advice, my problem here is that I havent a CLUE what Im doing with the .htaccess, its way outside my skillset so Im working blind.... problem is I really need to get this working properly as I know for a fact Im losing traffic over it...

    thanks anyway for your help guys!!



    MOG
     
    MOG, Jan 20, 2008 IP
  7. MOG

    MOG Well-Known Member

    Messages:
    2,219
    Likes Received:
    163
    Best Answers:
    0
    Trophy Points:
    180
    #7
    Would this be the common consensus as to what could be wrong with it then, if nobody can see anything in the .htaccess file?

    thanks!

    MOG
     
    MOG, Jan 21, 2008 IP