Forum Discussion
Pete_Paiva_7147
Nimbostratus
Mar 26, 2007Modify iRule to ignore case sensitivity in URI
Here's my current iRule:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri contains "/crn" } {
pool pdam.com-HTTP
} elseif { $uri contains "/dmz04319...
Ahmed_Thabit_13
Nimbostratus
Jan 26, 2014When I tried the switch command exactly as you explained it gave me an error message
01070151:3: Rule [Test123-redirect] error: line 4: [wrong args] [switch [string ToLower [HTTP::uri]]{ ] line 4: [invalid option "ToLower" must be: bytelength compare equal first index is last length map match range repeat replace tolower totitle toupper trim trimleft trimright wordend wordstart] [ToLower]
Any idea?
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