Forum Discussion
ryan_rockwell_1
May 14, 2014Nimbostratus
nested elseif unexpected behaviour
I created an iRule to (first) redirect to maintenance page and then if available redirect traffic to 1 of 3 pools based on URI data groups. The iRule compiles fine but the result is unexpected. The...
Kevin_Stewart
May 21, 2014Employee
Okay, so try this:
switch -glob [string tolower [HTTP::path]] {
"*.gif" -
"*.jpg" -
"*.css" {
return
}
default {
HTTP::uri /
}
}
If the URI is for an image or css, let it through and leave it alone. Otherwise change the URI to /.
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