when HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] equals "www.abc.example.com") } {
HTTP::redirect "https://abc.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.def.example.com") } {
HTTP::respond 301 Location "https://def.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.ghi.example.com") } {
HTTP::respond 301 Location "https://ghi.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.jkl.example.com") } {
HTTP::respond 301 Location "https://jkl.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.mno.example.com") } {
HTTP::respond 301 Location "https://mno.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.pqr.example.com") } {
HTTP::respond 301 Location "https://pqr.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.stu.example.com") } {
HTTP::respond 301 Location "https://stu.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.vwx.example.com") } {
HTTP::respond 301 Location "https://vwx.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.yza.example.com") } {
HTTP::respond 301 Location "https://yza.example.com[HTTP::uri]"
}
if { ( [string tolower [HTTP::host]] equals "www.sas.example.com") } {
HTTP::respond 301 Location "https://sas.example.com[HTTP::uri]"
}
}