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