Forum Discussion
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
- Cory_50405
Noctilucent
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]" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com