Forum Discussion
Kalibre46_28860
Nimbostratus
Sep 02, 2016iRule to redirect a URL but replace only a portion of the variable length URI??
Hi,
I'll start by saying I'm new to iRules but have been a Networking professional for many years, so please go gently on the code newbie!
There is a redirect irule that I need to create th...
R_Marc
Nimbostratus
Sep 02, 2016regsub would be one way to do that.
regsub -nocase -all {^/[a-z1-9]+/[a-z1-9]+/documents} [HTTP::uri] "/new/documents" uri
Then just set HTTP::uri to $uri.
That regsub would capture the scenarios you listed.
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