Forum Discussion

F5Hopper_28651's avatar
F5Hopper_28651
Icon for Nimbostratus rankNimbostratus
Jul 28, 2016

Masking URL redirection

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], I will send them off to [https://dev01.www.somesite.com/personal-landing/index.asp?cust=first-lastname] with the irule below.

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] till they click something in the site, then I dont care.

Thanks for any info.

1 Reply

  • 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

     

    Domain Mask