Forum Discussion
PeteWhite
Oct 17, 2014Employee
Are you all sorted now?
Presumably the whole thing is something like this:
when HTTP_REQUEST {
if { ([HTTP::uri] contains "CA") && ([IP::addr [IP::client_addr] equals 10.10.0.0/21]) }
{
HTTP::redirect "https://public.example.com"
} else {
HTTP::redirect "https://inside.example.com"
}
if { ([HTTP::uri] contains "MTN") && ([IP::addr [IP::client_addr] equals 10.10.0.0/21]) }
{
HTTP::redirect "https://public.example.com"
} else {
HTTP::redirect "https://inside.example.com"
}
if { ([HTTP::uri] contains "UK") && ([IP::addr [IP::client_addr] equals 172.30.144.0/22]) }
{
HTTP::redirect "https://public.example.com"
} else {
HTTP::redirect "https://inside.example.com"
}
discard
}