irule to change host and uri from response
I have created below iRule which is working fine with respect to client request
when HTTP_REQUEST { if { ([HTTP::host] == "abcd.client.com") and ([HTTP::uri] == "/") } { HTTP::header replace Host "abcd.supplier.com" HTTP::uri "/server can/respond/to/this/uri" pool Pool_supplier } }
but server redirect the request to different host/uri in response which client can see, and which we don't want. we want client to see the initial url on which request was initiated. for ex. client send request on abcd.client.com - F5 change the host header and uri to abcd.supplier.com/server can/respond/to/this/uri - server redirect response to new.supplier.com/new uri. The flow is working fine the only concern is to limit client to see abcd.client.com/uri
The F5 version is 11.6 HF6 Please suggest an iRule or other solution to fulfill the requirement