Forum Discussion
Maintenance/sorry page with image on v11.1
I used the example above and it works...but it only works if the user is going to the home page. I'm not a web guy so bear with me, but what I'm trying to say is that if the user goes to:
and the site is down it redirects it to the apology page.
But if the user goes to www.site.com/site/default.aspx then it doesn't redirect. Is there a way to make it so if the user goes to "any" URL within the site that it will redirect to the apology page? I can actually make that work using a basic apology page, but I can't get it to work with this example that uses the ifile to call the image.
What I can get to work is:
when LB_FAILED {
if { [active_members [LB::server pool]] < 1 } {
HTTP::respond 200 content [ifile get "sharepoint_apology"]
} else { discard }
}
...but that doesn't allow me to display an image.
What I'm currently using is:
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1} {
switch [HTTP::uri] {
"/" { HTTP::respond 200 content [ifile get "sharepoint_apology"] }
"/sharepoint_apology_pic" { HTTP::respond 200 content [ifile get "sharepoint_apology_pic"] }
}
}
}
Thanks,
David
Recent Discussions
Related Content
* 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