Forum Discussion
Modify uri path using local traffic policy instead of IRule
Hi all
Im using my F5 BIGIP (v13) as reverse proxy to publish some websites by using local traffic policies.
But i need to perform a URL rewriting. To be specific, i need to strip a string from the URI path.
When applied as IRule it works correctly as I want:
when HTTP_REQUEST { if { [string tolower [HTTP::uri] ] starts_with "/path1" } { HTTP::uri [string map {"/path1/" "/"} [HTTP::uri]] node 10.10.10.20 8000 } }
But when using local traffic policy it does not work as expected:
Replace - HTTP Uri - PATH ... with value... tcl:HTTP::uri [string map {"/path1/" "/"} [HTTP::uri]]
Am i doing something wrong? What would be the correct way?
Thanks all!
Recent Discussions
Related Content
* 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