Forum Discussion

Frank_Mancini_3's avatar
Frank_Mancini_3
Icon for Nimbostratus rankNimbostratus
Sep 22, 2006

can you do an irule that has a NOT CONTAINs

example

 

 

if { [HTTP::uri] not contains "index.html" }

 

 

 

does anyone know if this is possible...basically, anything that doesn't contain index.html will be handled differently.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    You can use ! or not like this:

     

     

    if { not ([HTTP::uri] contains "index.html") }

     

     

    or:

     

     

    if { !([HTTP::uri] contains "index.html") }

     

     

    Aaron