Forum Discussion
CHRISTY_THOMAS
Jun 15, 2024Cirrus
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...
- 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} } } }
CHRISTY_THOMAS
Jun 19, 2024Cirrus
Hi Paulius
Unfortunately the irule that you have shared is not working. I have attached a picture that, the same scenario has worked in cloudflare, Requestig you to check the attachment and help on this.
thanks
Christy
- PauliusJun 19, 2024MVP
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} } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects