Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

redirection irule using path

neeeewbie
MVP
MVP

Hi guys 

I need your help 

I want to devide traffic using path 

ex )

aaa.com  >> default pool

aaa.com/ >> default pool

aaa.com/bb >> default pool

aaa.com/bb/ >> A pool

aaa.com/bb/cc >> A pool

aaa.com/bb/dd >> A pool

 

I don't know how to check first "/" and second "/" ??

 

4 REPLIES 4

Ahmed_Galal
Cirrostratus
Cirrostratus

Hello,

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

 

neeeewbie
MVP
MVP

I found irule 

below irule can check path 

[URI::path [HTTP::uri] 2] equals "" 

VernonWells
F5 Employee
F5 Employee

@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.