Forum Discussion
Irule working, But incorrect statement taking effect
- 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
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
Recent Discussions
Related Content
* 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