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 presumably if the maintenance page comes up, and that maintenance page has links to image objects, the client will fetch those resources. In your iRule, if the path ends with, say *.gif, then
HTTP::uri [string range [HTTP::uri] [string last / [HTTP::uri]] end]
which should be stripping any leading URI from the path.
/foo/bar/my_cat.gif = /my_cat.gif
Is that what you want? Would you need to do that at all, given you're only processing the maintenance mode condition and that maintenance page should have object references you can address directly?
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