Forum Discussion
Stanislas_Piro2
Jan 15, 2018Cumulonimbus
Your code will loop!
If you want the request to be forwarded to the server, don't use redirect command!
when HTTP_REQUEST {
if { [HTTP::host]] equals "www.aaa.com"}{
switch [HTTP::uri] {
"/123" { HTTP::redirect "https://www.bbb.com/specified1" }
"/456" { HTTP::redirect "https://www.bbb.com/specified2" }
}
default {
forward the request... no action
}
}
}