Here are a couple of options:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] to [HTTP::host][HTTP::uri]"
if {[string tolower [HTTP::host]] starts_with "abbott."} {
HTTP::redirect "http://abbottace-d.com[HTTP::uri]"
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to http://abbottace-d.com[HTTP::uri]"
}
}
Or
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] to [HTTP::host][HTTP::uri]"
switch -glob [string tolower [HTTP::host]] {
"abbott.*" -
"*.lb-devdmz.abbott.com" {
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to http://abbottace-d.com[HTTP::uri]"
HTTP::redirect "http://abbottace-d.com[HTTP::uri]"
}
}
}
Aaron