Forum Discussion
Santokn_189503
Mar 14, 2015Nimbostratus
Hi Baltostar
From the above irule i understood (Correct me if i am wrong as i am new to irule) that if the below URI matches
"/best-pool" - "/best-bar" - "/most-romantic*" "/about/termsandconditions.html" - "/about/yourpersonalinfo.html" - "/about/rewards.html"
Set the variable route_to_alt_tm to 1 and also if route_to_alt_tm is equal to 1 then choose the pool pool_alt_tm
Could me please post the complete irule and explanations also bit confuse reg. the need for set route_to_alt_tm 0
- Michael_JenkinsMar 15, 2015Cirrostratusthe "set route_to_alt_tm 0" command is used so that when checking the variable for "1", it won't give a runtime error because the variable is not defined. The other option if you don't know whether a variable has been set is to use "[info exists VARNAME]"