redirection irule using path

Hi guys

I need your help

I want to devide traffic using path

ex )

aaa.com  >> default pool

aaa.com/ >> default pool

AAA Sorry Page >> default pool

AAA Sorry Page >> A pool

AAA Sorry Page >> A pool

AAA Sorry Page >> A pool

I don’t know how to check first “/” and second “/” ??

Hello,

you dont need iRule, you can configure LTM policy which base condition on URI and action to forward traffic to pool.

To add a few references:

I found irule

below irule can check path

[URI::path [HTTP::uri] 2] equals “”

@neeeewie, it is of course, perfectly acceptable to use an iRule.  However, keep in mind that Local Traffic Policies are generally more performant.  Moreover, and more importantly, because policies are constructed by configuration, they follow a more standard support path than iRules.