Forum Discussion
Francois
Nimbostratus
May 20, 2019Replace part of URI
Hi, I am looking for an Irule to replace a part of URI. URL = something/abc/azerty I want to rewrite on server side to : URL = thing.abc/azerty Which command can select the first part of URI b...
Snl
Cirrostratus
May 20, 2019- Try below
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/something/abc/azerty" } {
HTTP::uri [string map {"/something/abc/azerty" "/thing.abc/azerty"} [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