Forum Discussion
KD_48848
Nimbostratus
Aug 10, 2007URL convertion from upper case to lower case
We are currently having many redirect rules in place for one of our clients. The issue is that while redirecting we are giving conditions to match upper and lower case.
Is there any way tha...
Deb_Allen_18
Aug 10, 2007Historic F5 Account
Well, you're only testing the URI value, not the host header value, so it won't matter what case is used for the hostname.
If you were going to compare hostname as well in the same fashion, you'd need to wrap it in the tolower function the same way:
if (tolower(http_uri) ends_with "/xyz" and tolower(http_host) equals "www.abc.com") {
redirect to http://www.abc.com/pqr
}
/deb
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