Forum Discussion
Stanislas_Piro2
Mar 07, 2017Cumulonimbus
Hi,
Browser never send empty uri in request.
The request format is :
GET /path HTTP/1.X
Or (for some http 1.0 browser)
GET /path
The uri is always at least /
When you do not enter any path in the browser, it append /
The code is
if {[HTTP::path] eq "/"} {
HTTP::respond 301 Location http://server.company3.com/
}
else {
HTTP::respond 301 Location http://server.company2.com[HTTP::uri]
}