I have never used it before, but I am very curious if something like this would work? It does compile, I am just uncertain of the ramifications of using event disable in an iRule:
when HTTP_REQUEST {
set state [class match -value [whereis [IP::client_addr] state] equals uk_regions]
if {($state ne "")}{
switch $state {
Leeds { pool $region }
York {if { [HTTP::uri] starts_with "/ab/york"} {
event HTTP_REQUEST disable
} else {
HTTP::redirect http://62.190.1.1/ab/york
}
}
grlond {HTTP::redirect http://www.google.com/news}
default {pool DEV-HTTP-POOL}
}
}
}