Forum Discussion
Richard_77286
Oct 31, 2016Nimbostratus
iRule redirect URI to another pool
When users go ";, they should be redirected to a different pool. Somehow the iRule below is not working. What am I missing? Any comment is appreciated. Thanks!
when HTTP_REQUEST {
if { [HTT...
ekaleido
Oct 31, 2016Cirrus
Maybe normalize the URI to lower case?
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/video" } {
pool Video_pool
}
}
- Richard_77286Oct 31, 2016Nimbostratus
Thanks ekaleido. I just tried it and it did not work.
- ekaleidoOct 31, 2016Cirrus
Honestly, try this just to ensure you're receiving what you think you are:
when HTTP_REQUEST { log local0. "The URI we are receiving is [HTTP::uri]" }
This will at least validate the URI coming in by logging it to the LTM. From there we should be able to find out why it isn't working as expected.
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