# Masking URL redirection

**URL:** <https://community.f5.com/t/masking-url-redirection/35872>\
**Category:** Technical Forums\
**Tags:** big-ip, irules, application-delivery\
**Created:** [July 28, 2016, 2:20pm UTC](https://community.f5.com/t/masking-url-redirection/35872 "2016-07-28T14:20:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![F5Hopper\_28651](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@F5Hopper\_28651](https://community.f5.com/u/F5Hopper_28651)\
**Post date:** [July 28, 2016, 2:20pm UTC](https://community.f5.com/t/masking-url-redirection/35872/1 "2016-07-28T14:20:28Z")

</div>

Hey crew!, I have read about masking and some of the posts are very old. So I will ask.

when the url is coming in as [[http://first-lastname.dev01.www.somesite.com](http://first-lastname.dev01.www.somesite.com)], I will send them off to [[https://dev01.www.somesite.com/personal-landing/index.asp?cust=first-lastname](https://dev01.www.somesite.com/personal-landing/index.asp?cust=first-lastname)] with the irule below.

```tcl
when HTTP_REQUEST {
        set HOST [string tolower [HTTP::host]]
        set USER [getfield $HOST "." 1]
        set DEV [getfield $HOST "." 2]
        HTTP::respond 302 Location "https://$DEV.www.somesite.com/personal-landing/index.asp?cust=$USER" Connection Close
        }

```

can I set a mask to hide the end site so all the user ever see’s is [[http://first-lastname.dev01.www.somesite.com](http://first-lastname.dev01.www.somesite.com)] till they click something in the site, then I dont care.

Thanks for any info.

---

<div class="post-metadata">

**Author:** ![Vijay\_E](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vijay\_E](https://community.f5.com/u/Vijay_E)\
**Post date:** [July 28, 2016, 3:32pm UTC](https://community.f5.com/t/masking-url-redirection/35872/2 "2016-07-28T15:32:46Z")

</div>

If possible, avoid using it as it just consume resources on the F5. I think this is something that has to be handled at the application/server level. If you still want to proceed, these are starting points:

[URI Mask](https://github.com/odaah/F5-LTM/blob/master/iRULE_URI_Mask)

[Domain Mask](https://github.com/odaah/F5-LTM/blob/master/iRULE_Domain_Masking)
