Forum Discussion
Jay_Prasanth_13
Nimbostratus
Oct 28, 2014How to create iRule to forward request depending on context input which has hyphen sign "-" in the url
For eg. when user type http://abc.com/aa/bb/cc/xx-yy-zz , iRule should redirect to http://abc.com/aa/bb/cc?t1=xx&t2=yy&t3=zz
Explanation
http://abc.com/aa/bb/cc/xx-yy-zz [ aa,bb,cc are sta...
kunjan
Nimbostratus
Oct 28, 2014Try this
set newuri {/aa/bb/cc/}
set str [split [lindex [split [HTTP::uri] /] end] -]
set parm "t1=[lindex $str 0],t2=[lindex $str 1],t2=[lindex $str 2]"
HTTP::uri "$newuri?$parm"
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