Forum Discussion
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.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 "/" ??
- Ahmed_GalalCirrostratus
Hello,
you dont need iRule, you can configure LTM policy which base condition on URI and action to forward traffic to pool.
I found irule
below irule can check path
[URI::path [HTTP::uri] 2] equals ""
- VernonWellsEmployee
@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.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com