Forum Discussion
Kevin_Davies_40
Aug 10, 2011Nacreous
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/sites/dts" } {
Rewrite host header value and select pool
HTTP::header replace Host www.xyz.com
pool sharepoing2007pool
}
else {
pool sharepoint2010pool
}
}
You pretty much had it... just left a switch statement in that you didn't need anymore 🙂 For robustness I added a lowercase conversion.
Jarvil