Forum Discussion
Stanislas_Piro2
May 19, 2016Cumulonimbus
OK,
[HTTP::uri] is /, so do not append [HTTP::uri] but / 🙂
The following rule may work:
when HTTP_REQUEST {
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/"}
}
}
}
This is the same as mine, except the end of the URI which is /