Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

TMHE_CISSEC's avatar
TMHE_CISSEC
Icon for Nimbostratus rankNimbostratus
Jul 04, 2019

Force-Lowercase and trailing slashes iRule

Hello,

 

Could anyone please provide Force-Lowercase and trailing slashes rule in a one platform.

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]]/"
        }
    }