Forum Discussion
Thieß_Rathjen_1
Nimbostratus
Apr 13, 2006matchclass and string tolower
I am trying to match parts of the URI against a list of strings.
My problem is, that i have to convert both into lower case before, because i do not know if the customers types in lower or upper cas...
Thieß_Rathjen_1
Nimbostratus
Apr 18, 2006Question: why are you adding mixed case to your class and then converting it to lower case in the iRule. Why not just have it lower case to start with and then just convert the uri to lower case.
The class is a generated list of brandnames and i do not really know which cases are used.
To simplify my problem i have shortened the rule. Before i try to match the uri against my class, i verify the domain.
What i really try to do is if url is like http://www.domain.com/brand1 than redirect to http://domain.com/some_folder/brand1
Thanks for the hint to replace "starts_with" with "equals". I will do that.
If there is no way to lower a TCL list, i have to ensure, that my class will be in lower case.
Thank you for the answer.
--
Thiess
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