Forum Discussion
Angelo_V
Mar 25, 2017Cirrus
Hi,
[HTTP::host] contains only the host name without protocol (http, https).
when HTTP_REQUEST {
if { [HTTP::host] equals "www.abc.com" and [HTTP::uri] starts_with "/CustomAB/" } {
HTTP::redirect "http://xyz.test.com/services.txt"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}