Forum Discussion

1 Reply

  • Could probably be optimised, and I haven't verified if this actually works, but a draft would be something like this.

    when HTTP_REQUEST {
        set uristring [HTTP::uri]
        
        if { $uristring ends_with "/" } {
            HTTP::uri [string tolower [$uristring]]
        } else {
            HTTP::uri "[string tolower [$uristring]]/"
        }
    }