Forum Discussion
mikey_webb
Oct 28, 2020Cirrus
Geolocation irule multiple redirect error
i have the below redirect based on geolocation which seems to work. however in the f5 log i see operation not support multiple redurect error-assume issue is with the default at the end, so question ...
Oct 28, 2020
Hi mikey_webb,
Can you try using "HTTP::has_responded"?
when HTTP_REQUEST {
if { HTTP::has_responded } { return }
switch [whereis [IP::client_addr] country] {
"GB" {
HTTP::redirect "https://uk.abc.com/"
return
}
"AU" {
HTTP::redirect "https://intl.abc.com/aus"
return
}
"US" {
HTTP::redirect "https://intl.abc.com/usa"
return
}
"CA" {
HTTP::redirect "https://intl.abc.com/can"
return
}
default {
HTTP::redirect "https://uk.abc.com/"
return
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects