Forum Discussion
abeny_894
Nimbostratus
Dec 03, 2008How to combine two iRules into one?
Dears,
First of all, I would like to say thanks to all of you that I have learned much on iRules in here.
I have a question on how can I combine separate iRules int...
Colin_Walker_12
Dec 03, 2008Historic F5 Account
What you would probably want to do is combine all of the cases into one large switch. You could use switch -glob [HTTP::host][HTTP::uri] to accomplish this. Then for the host only matches use something like "abc.com*" for the match, and for the uri only matches use "*/app1/index.html". Then you would leave the host and uri comparisons the same, and one switch should handle all of the above cases.
Let me know if this doesn't make sense and I'll show you what it would look like combined.
Colin
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
