IRONMAN
Aug 05, 2020Cirrostratus
Solved
Irule working, But incorrect statement taking effect
HI , Any one please guide me here I have below irule, when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "test.new.com" } { pool new } elseif { ! ([HTTP::host] starts_wi...
- Aug 06, 2020
As your elseif statement is elseif { ! ([HTTP::host] starts_with "www.") },
So when request is coming for host flow.com, it is not equal (!) to condition starts_with "www" so it is matching elseif statement and redirecting it as per action statement - HTTP::redirect https://www.[HTTP::host][HTTP::uri]}
Can you please elaborate your overall requirement to help further?
Mayur