Forum Discussion
f5now_28704
Oct 03, 2007Nimbostratus
URI 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.
- f5now_28704NimbostratusYah 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.
- Colin_Walker_12Historic F5 AccountIt is for moving everything to lowercase.
- f5now_28704Nimbostratusok, now I get it. thanks for the explanation
- Colin_Walker_12Historic F5 AccountNo sweat, glad I could help. Let us know if you've got any more questions.
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