Gary_Blevins_31
Oct 12, 2005Nimbostratus
iRule Issue
I have the following iRule set up on my 9.1 BigIP:
when HTTP_REQUEST {
if { [HTTP::host] contains "www.careers.philips.com"} {
HTTP::redirect "http://www.philips.com/about/careers"
}
elseif { [HTTP::host] contains "www.peopleclick.com" or "eeosource.peopleclick.com" or "eeoanalytics.peopleclick.com" or "eeodiversity.peopleclick.com" or "generator.peopleclick.com" or "optimum.peopleclick.com" or "secure.peopleclick.com" or "strategichr.peopleclick.com" or "www.itiliti.com" or "www.eeosource.com" or "www.eeosource.net" or "www.eeosource.org" or "elearning.peopleclick.com"} {
pool CorpWeb
}
else {
pool ProdWeb
}
}
When I put the rule in, there are no errors, however, in the local traffic log I see the following every time the rule is accesses:
TCL error: Rule ProdWeb_TrafficRouting_Rules - can't use non-numeric string as operand of "||" while executing "if { [HTTP::host] equals "www.careers.philips.com"} { HTTP::redirect "http://www.philips.com/about/careers" } elseif { [HTTP::host] equals "www.peo..."
Has anyone seen this before? Any help would be greatly appreciated.
Thanks,
Gary Blevins