Forum Discussion

CHRISTY_THOMAS's avatar
Jun 15, 2024

Dynamic url redirection feasibility

In one of the BIG –IP integrated application need to redirect a dynamic url to other one.   Requirement description: “” Client require the call back API to FED bank endpoint in format : IP:port/u...
  • Paulius's avatar
    Paulius
    Jun 19, 2024

    Based on what you provided in your screenshot it should be the following.

    when HTTP_REQUEST priority 500 {
    
        if { [HTTP::host] eq "apiuatgwy.fedbank.com" } {
    
            if { [HTTP::uri] starts_with "/udir" } {
                set URI [string map -nocase {"/udir" "/sib/uat/udir/"} [HTTP::uri]]
                HTTP::uri ${URI}
            }
    
        }
    
    }