Forum Discussion
Todd_94419
Nimbostratus
Sep 13, 2011HTTP to HTTPS Redirect based on URI
It would appear that there have been several posts pretaining to this type of question but I have been unable to find something that fits exactly, and I am not able to get it to work.
Trying...
Michael_Yates
Nimbostratus
Sep 14, 2011The HTTP::uri is case sensitive depending on which operating system you are using (Apache vs. IIS, and probably a few others).
The [string tolower [HTTP::uri]] forces all of the characters to lower case so that you have a "known state" to compare against.
So if the incoming URI is /ABC it forces it to /abc. Doing so makes a comparison like [string tolower [HTTP::uri]] starts_with "/abc" for for both.
You can read more about it on the Wiki Entry: http://devcentral.f5.com/wiki/iRules.SetUriToLowerCase.ashx
Let me know if you have any more questions. Glad it all worked out for you.
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