F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Alex_Loh_3273's avatar
Alex_Loh_3273
Icon for Nimbostratus rankNimbostratus
Feb 07, 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

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    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
       }
    }
    

    Aaron