HTTP redirect with URI replacement without using [http::host]
I am redirecting a https request when uri /ExampleWeb* is requested it is changed to /ExampleWeb/test* then is being redirected to http (all other uri will stay https). The issue I am having is that when it is being redirected using [http::host] the server in the pool doesn't have the host in its directory. So I would like to be able to redirect it to http but the only thing that stays is the uri (allowing the VIP to change the host). This is what I have currently which still keeps the http host. FYI the uri is case sensitivity so I can't use tolower. I don't know if this is the best way or to point it to a new pool and keep the uri.
when HTTP_REQUEST {
if {[HTTP::uri] contains "/ExampleWeb"}{
log "Requested URL is [HTTP::host][HTTP::uri]"
HTTP::uri [string map {"/ExampleWeb" "/ExampleWeb/text"} [HTTP::uri]]
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}