Forum Discussion

truongh_36312's avatar
truongh_36312
Icon for Nimbostratus rankNimbostratus
Mar 16, 2017

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.

 

1 Reply

  • 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 "; } }