Forum Discussion
URL needs to be in certain case letters
Am I correct to assume that the origin web server needs to receive the request in the proper case, but that it doesn't really matter from a client-perspective?
If so, I would recommend re-writing the URI regardless of the case of the request. Redirecting does the trick, but it requires another request (i.e. increased overhead) and isn't as clean as a re-rewrite in my opinion. Something like this should do the trick if you want to re-write the request transparently:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/webcenter/" } {
HTTP::uri "[string map -nocase { "/webcenter/" "/WebCenter/" } [HTTP::path]]"
}
}(Note - I haven't tested the above code so I hope I didn't make any typos/omissions.)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
