F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Techgeeeg_28888's avatar
Techgeeeg_28888
Icon for Nimbostratus rankNimbostratus
Jan 13, 2014

Appending the URI to the incoming request

Hi Guys,

 

I hope someone must have had a similar requirement and may help me quickly.... I have a web server which is accessible by typing "company.service1.com/xx/yyy" . I want the users to type in their browser only "company.service1.com" can someone help me with an irule that can add this "/xx/yyy" to the incoming request to avoid the users from typing all of that.

 

Regards,

 

14 Replies

  • if {[TCP::local_port] == 80} {
        HTTP::respond 301 Location "https://company.service1.com/xx/yyy"
    } elseif {[HTTP::path] eq "/" } {
         This will give you a 'stealth' change of path
        HTTP::uri "/xx/yyy"
    }