Forum Discussion
IRONMAN
Aug 05, 2020Cirrostratus
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
IRONMAN
Aug 06, 2020Cirrostratus
Thanks Mayur, I understood, it is very clear. I missed it elseif { ! .
I am new to irule, so missed it.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects