Forum Discussion
gersbah
Nov 04, 2019Cirrostratus
elseif { ([HTTP::host] contains "10.10.10.15") } {
HTTP::redirect "https://[HTTP::host]/yyy"
}
This redirects back to the same host the user entered, which as per the if condition is "10.10.10.15"
You would want to do HTTP::redirect "https://webserver.test.local/yyy" in this branch.
Or just do that for all three redirects, because for the first one it doesn't matter and in the second one [HTTP::host] could also be the IP address.