Forum Discussion
Mike_Smith_1088
Nimbostratus
Apr 01, 2014I need to rewrite a URI between the F5 and Server only
I have a situation where I would like to remove a directory from the URI but keep all other information in tact.
example:
Between the Client and F5 I need https://www.company.com/information/an...
Kevin_Stewart
Employee
Apr 01, 2014Try this:
when HTTP_REQUEST {
HTTP::uri [string map {"/information" ""} [HTTP::uri]]
}
The above will brute force remove any instance of "/information" in the client side request URI. It will not, however, insert the URI into responses. Not sure if that's necessary, so not touching on possible solutions here.
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