Dear Expert,
I want to achieve the following scenario:
- A HTTP request coming to F5 (http://10.10.10.10/yo1/yo?http://youtube.com/watch?v=Di_stZgzdSw
- F5 replace the HTTP URL into http://youtube.com/watch?v=Di_stZgzdSw
I created the following but doesn’t seems working.
WHEN HTTP_Request {
if {[string tolower [HTTP::host]] starts_with “10.10.10.10”} {
set Original_URL [URI::query [HTTP::uri]]
set Original_URL2 [HTTP::query]
HTTP::request replace $Original_URL2
pool Server-10
}
}
Any advise?
Thanks.