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 HTTP_REQUEST {
if { !([HTTP::path] equals "http://test/niku/app") } {
HTTP::redirect "https://test.testmarketing.com[HTTP::uri]"
}
}
when HTTP_REQUEST {
if { [HTTP::host] equals "test" } {
HTTP::redirect "https://test.testmarketing.com[HTTP::uri]"
}
}
Suggestions?
Thanks!
-TJ