Forum Discussion
f5now_28704
Nimbostratus
Oct 03, 2007URI and case sensitive
Hi all,
I just made a rule for to redirects and it works 100%. but Im not sure if I can make it so its not case sensitive? so it would also answer for /Desktop or /DeskTop
when HTTP_REQUEST {
if { [HTTP::uri] eq "/desktop" } {
HTTP::redirect "http://www.google.com/Solutions/Desktop/tabid/122/Default.aspx"
}
if { [HTTP::uri] eq "/trial" } {
HTTP::redirect "http://www.google.com/Trial/tabid/121/Default.aspx"
}
}
thanks for any help.
4 Replies
- f5now_28704
Nimbostratus
Yah I had see that "string tolower" command but wasnt clear on its total use. I thought it was for moving from all upper case to lower case or at least that was the examples I had see posted.
anyways thanks again
Ryan - Colin_Walker_12Historic F5 AccountIt is for moving everything to lowercase.
By changing the string you're inspecting completely to lowercase before the comparison is made, you can ensure that case has no relevance in your comparison. Does that make sense? :D
Colin - f5now_28704
Nimbostratus
ok, now I get it. thanks for the explanation
Ryan - Colin_Walker_12Historic F5 AccountNo sweat, glad I could help. Let us know if you've got any more questions.
Colin
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
