Forum Discussion
Jay_Prasanth_13
Nimbostratus
Oct 14, 2014How to create iRule to forward request depending on context input
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 of above Example
http://abc.com/aa/bb/cc/xx/yy/zz ...
Jay_Prasanth_13
Nimbostratus
Oct 14, 2014I didn't get what for 5 , 6 and 7 in the script , what if I put some other value?
Hannes_Rapp
Nimbostratus
Oct 14, 2014You can use any values of any lengths you want. (e.g www.abc.com/aa/bb/cc/hhhhhhhhhhh/ssssssss/llllllllllll would work exactly the same)
For example:
set XX_VAL [ getfield [HTTP::uri] "/" 5] - returns anything entered in between fourth and fifth slash symbol as a string
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