Forum Discussion
F5_Freek_243545
Nimbostratus
Apr 12, 2017URI rewrite using string range??
Hi Friends,
I have a requirement to rewrite a URI which contains dynamic value. Can we do that using string range within an irule? Can you help?
Requirement: I have an https URL (https://xyz.com...
Stanislas_Piro2
Cumulonimbus
Apr 13, 2017Hi,
you can also use :
when HTTP_REQUEST {
if {[scan [HTTP::uri] {/Mainboard/%[^/]/%[^/]} dyn_value garbage] == 1 }
HTTP::uri "/Mainboard/rl?uid=$dyn_value"
}
}
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
