Forum Discussion
Fluidetom_12222
Cirrus
Oct 04, 2013How to use only part of the uri ?
Hey,
I have a very simple iRule to redirect the traffic to another URL if the uri start with a string (in my case "/api").
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/api" } {
...
Samir_Jha_52506
Noctilucent
Oct 04, 2013Can you please try this.
when HTTP_REQUEST {if { [string tolower [HTTP::uri]] starts_with "/abc" } { HTTP::uri [string map -nocase {"/abc" "/123/bac"} [HTTP::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