Hi MattC,
You can use a switch statement. Try this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"*eprospectusdirect.com" { HTTP::redirect "http://dstoutput.com/product/eprospectusdirect" }
"*dstmailingservices.com" { HTTP::redirect "http://dstoutput.com/product/presort-services" }
"*statementpacks.com" { HTTP::redirect "http://dstoutput.com/statementpacks/index.html" }
default {
pool wdc-docorpws-5000
}
}
}
Just wanted to point out that according to the RFC Standards, the [HTTP::host] value should be case insensitive, but performing a string tolower anyway catches all compliant and non-compliant browsers.
Hope this helps.