Forum Discussion
url redirect based on Geo location and VIP active
I've modified the irule for url redirect based on Geo location by continent. I also need to include this redirect invokes when only the VIP is in active. Let me know how to achieve
when HTTP_REQUEST { if {[HTTP::path] eq “/” } { set client_ip [IP::client_addr] set client_continent [whereis $client_ip continent] if { $client_ip ne “” } { switch [string toupper [whereis $client_ip continent]] { “NA” { HTTP::redirect “http://app-NA.abc.com” } “EU” { HTTP::redirect “http://app-EMEA.abc.com” } “AS” { HTTP::redirect “http://app-APAC.abc.com” } “SA” { HTTP::redirect “http://app-NA.abc.com” } “AF” { HTTP::redirect “http://app-EMEA.abc.com” } “OC” { HTTP::redirect “http://app-APAC.abc.com” } default { HTTP::redirect “http://app-NA.abc.com” } } } }
Recent Discussions
Related Content
* 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