Forum Discussion
Stanislas_Piro2
May 18, 2016Cumulonimbus
Hi,
you redirected all URI, so the redirected may be looping.
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if HTTP::uri equals "/" {
switch -glob [string tolower [HTTP::host]] {
"site1.company.com" {HTTP::redirect "/USERSITE1"}
"site2.company.com" {HTTP::redirect "/USERSITE2"}
"site3.company.com" {HTTP::redirect "/USERSITE3"}
}
}
}