Forum Discussion
JRahm
Apr 26, 2006Admin
Try this:
class myURI {
"c1 WEB02"
"c2 WEB02"
"d1 WEB01"
"d2 WEB01"
}
when HTTP_REQUEST {
set myPool [findclass [string tolower [HTTP::uri]] $::myURI " "]
if { info exists $MyPool } {
pool $MyPool
Next 3 lines only necessary
if /[cd][12]/ needs to be trimmed from the URI
set preURI [string trimleft [HTTP::uri] "/"]
set finalURI [string trimleft $preURI "/"]
HTTP::uri "/$finalURI"
}
}