Forum Discussion

Sams_88783's avatar
Sams_88783
Icon for Nimbostratus rankNimbostratus
Jun 23, 2011

Irule Help

There was a “begins with” clause in version 4.x that we used to route traffic based on the context root of the URL's.

 

I need to know if the “begins with” has been completely removed or replaced with something else in version 9.x

2 Replies

  • Hi,

     

     

    In v9 and higher, you can use starts_with. But to do multiple URI checks, it would be more efficient to use a switch statement:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/operators

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/starts_with

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/switch

     

     

    Aaron