Forum Discussion
computerli
Altostratus
Apr 02, 2018Need to remove part of URI from the request without redirect
I need to remove part of URI from the request without redirect For example, remove /record
WHEN https://abc.com/record/outland.1234f4fe1.le.js
GO TO https://abc.com/outland.1234f4fe1.le.js
WHERE
/record is static
/outland.1234f4fe1.le.js is dynamic, i.e can be any other string
Redirect is also not an option
- Vijay_E
Cirrus
Untested. You should be able to tweak it to suit your needs. You can also explore HTTP policy for similar change.
when HTTP_REQUEST { if {[HTTP::uri] contains "/record/"} { HTTP::uri [string map {"/record/" "/"} [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