Hi Andi,
Sorry, I think there was a mismatch in naming conventions. The ProxyPass rule is generally designed to hide the host and/or URI rewriting to transparently rewrite the requests before load balancing them. So it doesn't generally redirect. It looks like the intended ProxyPass functionality is working as the URI is being rewritten from /test/ to /php/somepath/.
If you want to redirect /test to /php/somepath/, you could use a simpler iRule like this:
when HTTP_REQUEST {
Check if URI is /test or /test/
switch [HTTP::path] {
"/test" -
"/test/" {
HTTP::redirect "/php/somepath/"
}
}
}
Aaron