Forum Discussion
hooleylist
Apr 29, 2011Cirrostratus
Maybe something like this? I'm assuming you only want to rewrite the URI if the original request is for /.
when HTTP_REQUEST {
Check if the request is for the root document
if {[HTTP::path] eq "/" }{
Check the Host header
switch [string tolower [HTTP::host]] {
"oem1.website.com" {
HTTP::uri "/oem1/vin.aspx"
}
"oem2.website.com" {
HTTP::uri "/oem2/vin.aspx"
}
}
}
}
Aaron