Albert_59847
Mar 10, 2016Nimbostratus
Combine redirect iRule doesn't work
Hi All,
I have two irules in one of my virtual server and run perfectly. I tried to merge the two irule but no luck, could someone review my merge irule? See below irule.
1st irule: when HTTP_REQUEST {
if { [HTTP::host] equals "outlook.kw.com.xy"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
2nd iRule: when HTTP_REQUEST {
if { [HTTP::host] equals "mail.kw.com.xy"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Merged iRule (doesn't work): when HTTP_REQUEST {
if { [HTTP::host] equals "outlook.kw.com.xy" && [HTTP::host] equals "mail.kw.com.xy"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Thanks and regards,