Forum Discussion

Fready_Ball's avatar
Fready_Ball
Icon for Nimbostratus rankNimbostratus
Oct 14, 2020

Modify blank URI

I am using this to modify get request in F5 to real server. if { [HTTP::uri] starts_with "/supervisor" } { HTTP::uri [string map {"/supervisor" "/admin"} [HTTP::uri]] }   and it works OK.  ...
  • Enes_Afsin_Al's avatar
    Oct 14, 2020

    Hi Fready Ball,

    You must use equals instead of starts_with.

    if { [HTTP::uri] equals "/" } {
    	HTTP::uri [string map {"/" "/user"} [HTTP::uri]]
    }