Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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
0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
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
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Thanks Aron
0