Forum Discussion
mohdemraan_1691
Nimbostratus
Sep 05, 2014Need to retain case sensitive in uri
Hi All,
I have a request to retain case sensitive in uri path like this: http://mysite.com/ThisFolderPath/v1
if someone may try something like this: http://mysite.com/thisfolderpath/v1 then...
Kevin_Stewart
Employee
Sep 05, 2014The HTTP::uri command is case sensitive, so you could very simply do something like this:
when HTTP_REQUEST {
if { [HTTP::uri] ne "/ThisFolderPath/v1" } {
HTTP::redirect "http://[HTTP::host]/ThisFolderPath/v1"
}
}
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