Forum Discussion
TJ_Vreugdenhil
Sep 15, 2011Cirrus
Combine two iRules
Hi - I am trying to combine two iRules on 9.x.
I believe a switch -glob statement would be appropriate, but not sure how do it with two different HTTP::'operators.'
when HTT...
Brian_69413
Sep 15, 2011Nimbostratus
I am not sure I follow completely, but it seems to me that this would do the trick:
when HTTP_REQUEST {
if { ([HTTP::host] equals "test") & (!([HTTP::uri] equals "/niku/app")) } {
HTTP::redirect "https://test.testmarketing.com[HTTP::uri]"
}
}
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