Hello,
Could someone please help me with this one.
I have two virtual services, one for http and one for https. I exactly similar iRules to both expect second statement has redirect to https url. This iRule works only in http side. Here is the rule:
when HTTP_REQUEST {
if { [HTTP::host] equals “www.aaa.com”} {
HTTP::redirect “http://www.bbb.com/message”
}
elseif { [HTTP::host] ne “www.ccc.com”} {
HTTP::redirect “http://www.ccc.com[HTTP::uri]”
}
So in http Virtual server everything works fine, but in https I get following error message to log:
TCL error: Rule www-ssl-new2 - can’t use non-numeric string as operand of “!” while executing
Something wrong with operator that I use but I really can’t see what.