Forum Discussion
ShakN_167332
Nimbostratus
Sep 10, 2014URI redirection issue with upper/lower case traffic
hi when user types lower case redirection works but when users types uppers it is not working..
eg: user come /bseu/finance it should redirect to /sites/finance this is working..now if user comes ...
Kevin_Stewart
Employee
Sep 10, 2014Try this subtle change:
if { [class match [string tolower [HTTP::path]] starts_with test] } {
set origin [class match -name [string tolower [HTTP::path]] starts_with test]
set new [class match -value [string tolower [HTTP::path]] starts_with test]
HTTP::uri [string map "$origin $new" [string tolower [HTTP::uri]]]
log local0. "New URI = $new"
}
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