Forum Discussion
oguzy
Jan 16, 2018Cirrostratus
Hi Yuri,
You can try the below code.
Code
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 {
HTTP::redirect "https://www.bbb.com[HTTP::uri]"
}
}
}
}