Forum Discussion
Joe_Erchul_4263
May 15, 2012Nimbostratus
Nathan,
Thanks for the tip. I added the variables as follows, but still no luck. I don't use variable definition much, so could you check my format for the correct syntax?
Thanks.
Joe
when HTTP_REQUEST {
set uri [HTTP::uri]
set header [HTTP::host]
if { (([HTTP::host] equals "Server1") or ([HTTP::host] equals "Server2")) and
([HTTP::uri] starts_with "/ThisURI") } {
HTTP::header replace Host "FinalDestination"
HTTP::uri "/new[string range $uri 8 end]"
}
}