ProxyPass v10/v11
I am trying to rewrite URL from internal to external by applying the mask on header. It is working as expected using below irule however if I select some hyperlink or option, its showing actual url information which we would like to prevent that, as client should not recognize where they are getting redirected.In our example, I am forwarding users who are trying to access test.abc.com/xyz/ to , till here it is working as expected but after it got redirected, if I select any option or hyperlinks, its no rewrite the URL information.
when HTTP_REQUEST { if { [HTTP::host] eq "test.abc.com" and [HTTP::uri] contains "/xyz/" } { if {[string tolower [HTTP::uri]] contains "/xyz"}{ set uri [string range [HTTP::uri] 4 end] HTTP::uri $uri HTTP::header replace host ";; pool testGoogle log local0. "[IP::client_addr]:[TCP::client_port]: Replacing Host with http://[HTTP::host]HTTP::uri" }}}