Forum Discussion
Aug 31, 2020
Hi Hien Truong,
when HTTP_REQUEST {
set host [HTTP::host]
set uri [string tolower [HTTP::uri]]
}
when HTTP_RESPONSE {
if { $host eq "mysite.com" && $uri starts_with "/work/" } {
if { [HTTP::status] eq "200" } {
HTTP::redirect "https://othersite.com/pages"
}
else {
HTTP::redirect "https://mysite.com"
}
}
}