Forum Discussion
Brent_Sachnoff_
Nimbostratus
19 years agofunny things happen with basic iRule
Hi. I have this iRule that appeared to work the first couple of times around and now only works for the 1,2 and last case within the if clause. I'm sure there is a better way to write it but I'm sti...
19 years ago
So are you saying that for some URI's you are getting the first logging line and for some URI's you are not? That doesn't make any sense. You should be hitting the HTTP_REQUEST event for each HTTP request and the first log command should always execute.
As for case sensitivity, you'll have to convert the strings to lowercase with the "string tolower" command
set newUri [string tolower [HTTP::uri]]
if { $newUri starts_with ... } {
...
}One other question. I'm assuming that this rule is not redirecting to itself with the default case. If so, you'll get a circular loop on your last HTTP::redirect.
-Joe
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