Hello,
It sounds like you want to remove a directory from the URI in a client request before the request is sent to the pool.
You can use HTTP::uri to set the URI and a string function to manipulate the original requested URI.
Here is a rough example:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/stores" }{
HTTP::uri [string map -nocase {"/stores" ""} $uri]
}
}
I think string map should accept "" as the replacement string. If it doesn't you might want to use another string function to remove the first seven characters of the URI instead of string map.
This post has some background info and additional options (
Click here)
Hope this gets you started.
Aaron