Forum Discussion

Albert__Tase_70's avatar
Albert__Tase_70
Icon for Nimbostratus rankNimbostratus
Oct 11, 2006

need help converting the following rule from 4 to 9 code

rule accruent_chipotle_rule01 {

 

if (http_uri ends_with "/") {

 

use pool accruent_01_80

 

redirect to "https://chipotle.accruentonline.com/en/login.jsp"

 

}

 

else {

 

use pool accruent_01_80

 

}

 

}

 

  • when HTTP_REQUEST {
      if { [HTTP::uri] ends_with "/" } {
        HTTP::redirect "https://chipotle.accruentonline.com/en/login.jsp"
      } else {
        pool accruent_01_80
      }
    }

    -Joe