Need Help with the I-Rule Data Group List
Hi All,
Need you advise on one of the requirement which has been raised by our application team. Currently we have the services running on our LTM for the portal site. We have the data group list configured with the string records for the Mobiles android, bb10, blackberry, iphone, lg..... etc and will be redirected to the URL for mobiles. Now the application team is requesting us to seperate the above 7" Inch devices as non mobile device and should not be redirected. Could someone can help us in fine tuning this iRule or changing the string in the Data Group list.
IRule:
if { [HTTP::uri] equals "/" } { if { [class match [string tolower [HTTP::header User-Agent]] contains mob_dev_dg] } { HTTP::redirect "http://www.raju.com.sa/eee/portal/mobile" log local0. "[IP::client_addr]:[TCP::client_port]: UA: [HTTP::header User-Agent], Mobile Device Detected"