Forum Discussion
TMHE_CISSEC
Nimbostratus
Jul 04, 2019Force-Lowercase and trailing slashes iRule
Hello, Could anyone please provide Force-Lowercase and trailing slashes rule in a one platform.
Heino
Cirrus
Jul 05, 2019Could 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]]/"
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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