Forum Discussion
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"energy.com" -
"goodenergy.com" -
"oddenergy.com" {
HTTP::respond 301 Location "https://www.[HTTP::host][HTTP::uri]" "Connection" "Close"
return
}
"corporate.ndtv.com" -
"marketing.ndtv.com" {
HTTP::respond 301 Location "https://www.ndtv.com" "Connection" "Close"
return
}
}
}
You can review the article at the link for switch command usage.
Yesh1923
Jan 17, 2023Nimbostratus
hi enes
i will test this rule will come back if faced any issue
thanks agian for your support !!!!!!