Forum Discussion

Bunkemannen's avatar
Bunkemannen
Icon for Nimbostratus rankNimbostratus
Nov 19, 2019

Irule stops working suddenly?

I have a basic redirect irule like this, and we have BIG-IP 13.1.1.4 Build 0.0.4 Point Release 4.

Sometimes the iRule is just not triggered, we then remove the iRule and add it again and it starts to work again, anyone have an idea of what can cause this?

 

Regards,

Bunke Andersson

 

when HTTP_REQUEST {

    if {[HTTP::uri] equals "/" or [HTTP::uri] equals "" }{

         HTTP::redirect "https://[HTTP::host]/overview"

   } 

}

2 Replies

  • Is there any specific reason to add ([HTTP::uri] equals "" ). I don't see issue with irule but may be tune.

    we recommend to use this kind of irule.

    when HTTP_REQUEST {
      if {[HTTP::uri] equals "/" }{
         HTTP::redirect "https://[HTTP::host]/overview"
           } 
    }
    • Bunkemannen's avatar
      Bunkemannen
      Icon for Nimbostratus rankNimbostratus
      I really dont know why it looks like that, maybe “/” is good enough and does the job! //B