Forum Discussion
cjones_01_13155
Nimbostratus
Jun 12, 2014Lowercase URI
Below I have the current rule setup:
when HTTP_REQUEST {
Check for capital letters in string
if {[string match {[A-Z]} [HTTP::path]]}{
HTTP::redirect "http://[HTTP::host][string tolower [H...
Matt_Breedlove_
Nimbostratus
Jun 25, 2014Hey Cjones,
This should work. Let me know if it does what you need.
if { not ([HTTP::path] equals [string tolower [HTTP::path]]) && [HTTP::path] ends_with ".aspx" }
HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]][HTTP::query]"
}
Matt_Breedlove_
Nimbostratus
Jun 25, 2014You might want to add a [string tolower] on the HTTP::path for the .aspx evaluation...if you want .ASPX, .aSpX, etc to match as well as ".aspx"
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