Forum Discussion
Thiyagu_343098
Nimbostratus
Apr 10, 2018Redirection based on URI on the request and inserting the URI path to the server
Hello Team,
I'm working on request from the application team to categorize URI from the request and based on the URI the new URI path needs to be inserted on LB and it should routed to the server. ...
jaikumar_f5
Noctilucent
Apr 10, 2018You can use the string map to achieve this,
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/URI1" } {
HTTP::uri [string map {"/URI1" "/URI1/URI2/URI3.html"} [HTTP::uri]]
}
if { [string tolower [HTTP::uri]] starts_with "/URI2" } {
HTTP::uri [string map {"/URI2" "/URI4/URI5/URI6.html"} [HTTP::uri]]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
