Forum Discussion
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” } } } }