Forum Discussion
May 24, 2006
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