Forum Discussion
Greg_76561
Nimbostratus
Jan 28, 2011Route to different pools based on /content
Hello,
I'm new to iRules and trying to come up with a way to send traffic to different pools based on the /content in the url.
I have a secure site which the ssl certificate is ins...
JRahm
Admin
Jan 28, 2011oh, I think you misunderstood my example. After the first line, I just demonstrate the string command in a native tcl shell. This is the only thing that is actual iRule code:
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
You'll want to make sure you use this only in the switch cases though so it doesn't arbitrarily pull path information out of all URIs.
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
