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.j...
Vijay_E
Cirrus
Apr 02, 2018Untested. 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