Forum Discussion
TMHE_CISSEC
Jul 04, 2019Nimbostratus
Force-Lowercase and trailing slashes iRule
Hello,
Could anyone please provide Force-Lowercase and trailing slashes rule in a one platform.
- HeinoCirrus
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]]/" } }
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