Forum Discussion
Jay_Prasanth_13
Oct 29, 2014Nimbostratus
This is my iRule ..,
if { [HTTP::uri] starts_with "/aa/bb-cc/dd/" } { set PREFIX_STATIC "/aa/bb-cc/dd" set XX_VAL [ getfield [HTTP::uri] "-" 2] set YY_VAL [ getfield [HTTP::uri] "-" 3] set ZZ_VAL [ getfield [HTTP::uri] "-" 4] set XX_NEW [split [lindex [split $XX_VAL /] end] -] HTTP::uri "$PREFIX_STATIC?q1=$XX_NEW&q2=$YY_VAL&q3=$ZZ_VAL" event disable }