We want if customer request https://abc.com/login then it gets redirected to https://abc.com/login?local=true
I wrote below iRule
when HTTP_REQUEST {
set lowerCaseHost [ string tolower [HTTP::host] ]
set lowerCaseUri [string tolower [HTTP::uri]]
if { $lowerCaseUri equals "/login" } {
HTTP::redirect "https://abc.com/login?local=true"
return
}
}
it is working… But when customer types only https://abc.com then also it gets redirected to https://abc.com/login?local=true we want redirection should happen only for https://abc.com/login Not sure whats wrong with this iRule. Please suggest.