Forum Discussion
Dec 03, 2015
Hi,
there was a missing parenthesis probably causing the failure to load the iRule:when HTTP_REQUEST {
if { ([class match [IP::client_addr] equals India_Host_Networks]) and ([string tolower [HTTP::host]] equals "site.domain.com") } {
HTTP::redirect " https://local.domain.com/stream/"
}
}
To be on the safe side I added a lower case conversion for the hostname. Just make sure to match versus lower case strings as well, please.
Thanks, Stephan