Forum Discussion
Geoff_Gudgeon_3
Nimbostratus
Aug 10, 2017How to prepend string to existing URI
Hi,
Just wondering how I might go about inserting(prepend) a string at the beginning of a URI
e.g.
https://www.something.com/param1¶m2
changed to
https://www.something.c...
jaikumar_f5
Noctilucent
Aug 10, 2017Please test this, I've been using this to match with host and uri.
when HTTP_REQUEST {
if { [HTTP::host] eq "www.something.com" }
{
if { [HTTP::uri] starts_with "/param1¶m2" } {
HTTP::redirect "/param3¶m1¶m2"
} else { }
} else { }
}
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