Forum Discussion
paulfish
Nimbostratus
Sep 01, 2015Remove first element of uri
Hi,
I'm looking to remove the first element of a URI.
This is what I got from searching this site and it works.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/css" } {
...
paulfish
Nimbostratus
Sep 01, 2015Hi,
Thanks for the fast response.
I think what you have written would work, I don't actually need to specify the string, I need to remove the first element, what ever it is.
I think this might work, I at home now so I will need to test tomorrow.
What do you think?
when HTTP_REQUEST { { HTTP::uri [string map {"/*/" "/"} [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