Forum Discussion
Kai_Wilke
Feb 05, 2016MVP
Hi
you may try the snippet belowe to differentiate between the different host names...
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/login" } then {
if { [string tolower [HTTP::host]] equals "abc.de" } then {
HTTP::redirect "https://abc.com/login?local=true"
return
} else {
HTTP::redirect "https://www.abc.com/login?local=true"
return
}
}
}
Note: I've removed the $lowerCaseHost and $lowerCaseUri variables because of performance reasons. Well, it make sense to use those variables, but just if you need the value more than once... 😉
Cheers, Kai