Forum Discussion
jaikumar_f5
May 02, 2018MVP
PFB,
Redirect one
when HTTP_REQUEST {
if { [HTTP::host] equals "simple.com" && [HTTP::uri] starts_with "/test" } {
pool my_pool
} else {
HTTP::redirect https://[HTTP::host]/test[HTTP::uri] }
}
Transparent, updating the URI and sending it to the backend member.
when HTTP_REQUEST {
if { [HTTP::host] equals "simple.com" && [HTTP::uri] equals "/" }
HTTP::uri [string map {"/" "/test/"} [HTTP::uri]]
}