convert http class to irule

Hi, Please help to convert http class to irule. Http class included: - Hosts match all URI Path List (regex)(?i) administrator. - Redirect to http://a.b.c.gov Thanks for your help.

Below is my irule but I’m not sure it is equivalent to http class: when HTTP_REQUEST {

if { ([string tolower [HTTP::host]] eq “a.b.gov”) and ([string tolower [HTTP::uri]] eq “(regex)(?i)administrator”) } { HTTP::redirect "; } }