Forum Discussion
Vivek_Padale_16
Nimbostratus
Aug 01, 2014Irule for lowercase
Hello,
i want to create a irule for lowercase string for a specific url. Below is the irule which i am trying but i am not getting the result.The current version on client side is v11.3 .
w...
hoolio
Cirrostratus
Aug 01, 2014What are you trying to match with the first URI check? This expression doesn't make sense to me:
if {[string match {[A-Z]} [HTTP::uri] eq "myBlock.Profile.com/Pages"
Also, you need to use wildcards in the string match to check for any capital letter:
% string match {[A-Z]} AAA
0
% string match {*[A-Z]*} AAA
1
So maybe something like this?
when HTTP_REQUEST {
if {"[HTTP::host][HTTP::uri]" eq "myBlock.Profile.com/Pages"]}{
HTTP::redirect "myblock.profile.com/pages"
}
}
Aaron
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