Forum Discussion

Alex_Loh_3273's avatar
Icon for Nimbostratus rankNimbostratus
Feb 08, 2011

Import Old iRules to LTM v10.2

Hi All,




Need your technical assistance to import the following irule to my LTM v10.2.



Tried to import but keep prompting out error, please advice...thanks



rule abconline-https {


if (not http_uri contains "/abc/") {


redirect to "http://%h/%u"




else if (http_url contains "/discoverer/") {


use pool discoverer-pool




else {


use pool abc-pool



1 Reply

  • Hi Alex,

    Here is the 10.x equivalent:

    when HTTP_REQUEST {
       if { not ([HTTP::uri] contains "/abc/")}{
          HTTP::redirect "http://[HTTP::host][HTTP::uri]"
       } elseif {[HTTP::uri] contains "/discoverer/"}{
          pool discoverer-pool
       } else {
          pool abc-pool