Forum Discussion
Danielseyoum
Jul 26, 2007Altostratus
Case sensitivity challenge
I have application that is case sensitive and I have to make sure the case is formated in a way the application will respond.
incoming uri:
/about us --> should be --> /About Us
/...
Danielseyoum
Jul 27, 2007Altostratus
It's in the uri.
I tried the following and I am not sure why it's not working:
class urimapping {
"/about us"
"/corpcomm"
"/leading the path"
}
rule iRule_uri_switch {
when HTTP_REQUEST {
switch -glob [matchclass [string tolower [HTTP::uri]] equals $::urimapping] {
"/about us" { HTTP::redirect "https://www.test.com/irj/portal/About Us"}
"/corpcomm" { HTTP::redirect "https://www.test.com/irj/portal/CorpComm"}
"/leading the path"{ HTTP::redirect "https://www.test.com/irj/portal/Leading the Path"}
}}}
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