Forum Discussion
Andyhsbos77
Apr 23, 2018Nimbostratus
Creating an iRule with multiple conditions
Hello, New to F5 and iRules here,
I'm looking to create an iRule that looks for certain urls and redirects them. I want to know though if i can combined them into one rule per redirected URL, so...
Nandhini_Natar1
Apr 24, 2018Cirrus
Hello,
You can create irule like the below one for multiple conditions
ltm data-group internal host { records { site1/virtualdirector1/.aspx {} site1/virtualdirector2/.aspx{} site1/virtualdirector3/.aspx{} } type string }
when HTTP_REQUEST { if {[class match [HTTP::host] equals host]} { HTTP::respond 301 Location "; } }
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