Manuel_60430
Nov 16, 2016Nimbostratus
http redirect iRule not working
I have a rather simple iRule which is not working as intended. Maybe someone with a programming background could tell me what I am doing wrong?
The rule needs to perform a redirect, except if the client IP is member of a specific group (data group list). Here is what I got so far
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "something.mydomain.com" and not ([class match [IP::client_addr] equals EXCEPTION-LIST]) } {
HTTP::redirect "https://somethingelse.domain.com/[HTTP::uri]"
}
}