Forum Discussion
risgro_77522
Nimbostratus
May 11, 2015URL needs to be in certain case letters
Hello,
In the URL/application, "WebCenter" is case-sensitive. So if a client hits:
https://qweb.sys.com/webcenter/default or
https://qweb.sys.com/Webcenter/default or
https://qweb.s...
Arie
Altostratus
May 11, 2015Am 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 23, 2019Former Member
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