For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Jay_Prasanth_13's avatar
Jay_Prasanth_13
Icon for Nimbostratus rankNimbostratus
Aug 11, 2014

Need help to mask context path

Hi Guys, Need assistance All our URI starts with context path /xx/yy , I need to mask this in the browser. I could mask only home path , but not all subsequent path .Current iRule ( if {[HTTP::uri] eq "/blah"}{ HTTP::uri "/xx/yy/blah" } )

 

Expected output :- http://test.com should redirect to --> http://test.com/blah/blah (mask /xx/yy in the browser for current and subsequent pages)

 

can anyone help me to achieve this ?

 

1 Reply

  • If you want to simply append /xx/yy before every HTTP request and mask it from the end user, something like this should work as it'll only change the URI being passed to the web server. Since no redirection is happening, the user's browser will see no change:

    when HTTP_REQUEST {
     HTTP::uri "/xx/yy[HTTP::uri]"
     }