# Need help to mask context path

**URL:** <https://community.f5.com/t/need-help-to-mask-context-path/16153>\
**Category:** Technical Forums\
**Tags:** irules, devops, application-delivery\
**Created:** [August 11, 2014, 1:58pm UTC](https://community.f5.com/t/need-help-to-mask-context-path/16153 "2014-08-11T13:58:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Prasanth\_13](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Jay\_Prasanth\_13](https://community.f5.com/u/Jay_Prasanth_13)\
**Post date:** [August 11, 2014, 1:58pm UTC](https://community.f5.com/t/need-help-to-mask-context-path/16153/1 "2014-08-11T13:58:53Z")

</div>

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](http://test.com) should redirect to --\> [http://test.com/blah/blah](http://test.com/blah/blah) (mask /xx/yy in the browser for current and subsequent pages)

can anyone help me to achieve this ?

---

<div class="post-metadata">

**Author:** ![Cory\_50405](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@Cory\_50405](https://community.f5.com/u/Cory_50405)\
**Post date:** [August 11, 2014, 3:24pm UTC](https://community.f5.com/t/need-help-to-mask-context-path/16153/2 "2014-08-11T15:24:00Z")

</div>

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:

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

```
