Forum Discussion
Eric_Frankenfie
Oct 07, 2013Nimbostratus
URI Rewrite
I have a developer who is working a new version of an application and they would like to perform the following URI rewrite on the F5 so they don't have to deploy duplicate code to 100+ virtual direct...
Oct 07, 2013
Here's another option
if { ([HTTP::uri] starts_with "/") && ([HTTP::uri] contains "?") } {
Find the index of the "?" character
set idx [string first "?" [HTTP::uri]]
replace the first character with "?" and the idx'th character with "&"
HTTP::uri [string replace [string replace [HTTP::uri] 0 0 "?"] $idx $idx "&"]
}
Have fun!
-Joe
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