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...
ryan_rockwell_1
May 21, 2014Nimbostratus
I would think but for some reason it doesn't work that way. If I take out this section:
switch -glob [string tolower [HTTP::path]] {
"*.gif" -
"*.jpg" -
"*.css" {
HTTP::uri [string range [HTTP::uri] [string last / [HTTP::uri]] end]
}
default {
HTTP::uri /
}
}
My maintenance page comes up fine, images and all on http://www.website.com but when I go to http://www.website.com/login I get a 404 page not found. If I leave the section in I get the the maintenance page on both url's but missing the images.
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