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...
Robert_Luechte2
Cirrus
May 11, 2015I should have read your question a little close before I responded the first time. Here is an example where the user is redirected with the proper case for WebCenter and includes the rest of the URL. I haven't actually tested this, so there could be some syntax issues.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "WebCenter" } {
URL is correct case, do nothing"
}
elseif { string tolower [HTTP::uri] starts_with "webcenter" }
redirect user to the proper case, including the remainter of the URI.
The value 10 in the substring command should be the first character of the rest of the URI.
HTTP::redirect "https://qweb.sys.com/WebCenter/[substr [HTTP::uri] 10]"
}
}
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
