Forum Discussion
Arie
May 11, 2015Altostratus
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.)
Recent Discussions
Related Content
- May 24, 2019Former Member