Forum Discussion
SanjayP
Nov 03, 2021Nacreous
You can use something like below
when HTTP_REQUEST {
switch -glob [whereis [IP::client_addr]country] {
"ES"
{
HTTP::respond 301 Location "https://www.abc.com/es-es/home/servicepoints.html"
}
"CH"
{
HTTP::respond 301 Location "https://www.abc.com/se-se/home/servicepoints.html"
}
default {
HTTP::respond 301 Location "https://www.abc.com/home"
}
}
}
Please check below for selecting country code in iRule accordingly.
- asabadoNov 03, 2021AltocumulusThanks SanjayP. Pardon my ignorance but this will be implemented in GTM I assume? Or can it be done at LTM level? Do I need to define the countries anywhere first? Get Outlook for Android<>>
- SanjayPNov 03, 2021Nacreous
this will be in LTM. You just use countrycode in iRule as mentioned above.
e.g. ES - Spain, CH - Switzerland