Forum Discussion
Andyhsbos77
Nimbostratus
Apr 23, 2018Creating 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
Cirrus
Apr 24, 2018Hello,
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 "; } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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