when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] contains "/data/" or [string tolower [HTTP::uri]] contains "/resources/" or [string tolower [HTTP::uri]] contains "/visitor/" or [string tolower [HTTP::uri]] contains "/hjresources/" or [string tolower [HTTP::uri]] contains "/widgets/"} {
use pool WPM
} elseif {[string tolower [HTTP::uri]] starts_with "/webservices/rest/brand/dataqueue/"} {
HTTP::redirect "http://www.mydomain.com/cgi-win/rqueue.cgi?param=[HTTP::uri]"
} elseif {[string tolower [HTTP::uri]] starts_with "/webservices/rest/brand/comp/"} {
HTTP::redirect "www.mydomain.com/cgi-win/rcref.cgi?param=[HTTP::uri]"
} elseif {[string tolower [HTTP::uri]] starts_with "/webservices/rest/brand/"}{
HTTP::redirect "http://www.mydomain.com/cgi-win/rlookup.cgi?param=[HTTP::uri]"
} elseif {[string tolower [HTTP::uri]] contains "/cwpm/"} {
use pool WPM2
} elseif {[string tolower [HTTP::uri]] contains "/rw37"} {
HTTP::redirect "http://www.mydomain.com/cgi-win/excn.cgi?login&mode=comp&P=RW37"
} elseif {[string tolower [HTTP::uri]] contains "/na37"} {
HTTP::redirect "http://www.mydomain.com/cgi-win/excn.cgi?login&mode=comp&p=NA37"
} elseif {[string tolower [HTTP::uri]] contains "/dc25"} {
HTTP::redirect "https://biw.mydomain.com/cgi-win/biw.cgi?mode=paidlogin&t=dc25"
} elseif {[string tolower [HTTP::uri]] contains "/dc30"} {
HTTP::redirect "https://biw.mydomain.com/cgi-win/biw.cgi?mode=paidlogin&t=dc30"
} elseif {[string tolower [HTTP::uri]] contains "/oiq" and not ([string tolower [HTTP::uri]] contains "/rest/brand/oiq/")} {
HTTP::redirect "https://test.mydomain.com/data/[HTTP::uri]"
} elseif {([string tolower [HTTP::uri]] contains "/ec/" or [string tolower [HTTP::uri]] contains "/ecn") and not ([string tolower [HTTP::uri]] contains "/rest/brand/ecn/")} {
HTTP::redirect "https://ne.mydomain.com/data/ecn"
} else {
use pool WEBSERVERS
}
}