Forum Discussion
Dennis_Goss_70_
Nimbostratus
Dec 21, 2015iRule redirect but need some of the original PATH
Relatively new to iRules but have done a ton of scripting (PoSh, vbs, etc...) and understand the basics and have studied the http::uri, http::path and http::query built-in variables - thanks in advan...
Stanislas_Piro2
Cumulonimbus
Dec 21, 2015Hi,
there are 2 solutions:
string map to replace /management/dept/eng/corporatecommunications/ by /sites/corpcomm/
HTTP::uri [string map "/management/dept/eng/corporatecommunications/ /sites/corpcomm/" [HTTP::uri]]
string range to strip the begin of URI (45 first characters) and replace it by the new one:
HTTP::uri /sites/corpcomm/[string range [HTTP::uri] 45 end]
the second one is the most optimized for performances.
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