Forum Discussion

Rick_16795's avatar
Rick_16795
Historic F5 Account
May 15, 2007

Strange redirect behavior

I have a basic iRule to redirect for a couple of pages only. However, when I apply this iRule

 

a long delay takes place at a seemingly unrelated page.

 

 

Here's the iRule:

 

 

rule test_e {

 

when HTTP_REQUEST {

 

switch -glob [HTTP::uri] {

 

"/Default.aspx" {

 

HTTP::redirect "https://www.domain.com/Default.aspx"

 

}

 

"/Signin.aspx" {

 

HTTP::redirect "https://www.domain.com/Signin.aspx"

 

}

 

}

 

}

 

}

 

 

The redirect seems to work fine, but further into the session between two other pages that are not being redirected a long delay happens, after the (1 min) delay the transaction will complete. And it's only apparent with IE not Firefox. When I remove the iRule things work fine. ANY insight into why this is happening would be very helpful.

 

 

--Thanks

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Are you getting into a redirection loop? It looks like the URI you're redirecting to is the same URI as the one you're checking for in your switch structure. Could it be possible that IE is getting confused and trying to redirect x number of times until it finally gives up?

     

     

    Colin