Forum Discussion
siyadh_121603
Dec 20, 2014Nimbostratus
Maintenance URL by iRule
is it enough for Maintenance URL from abc.com..?
when HTTP_REQUEST {
HTTP::redirect "http://www.abc.com/maintenance.html"
}
Michael_Jenkins
Dec 20, 2014Cirrostratus
If you already have a maintenance.html page on the site, then I would use this
when HTTP_REDIRECT {
if { not ([HTTP::uri] equals "/maintenance.html") } {
HTTP::redirect "http://www.abc.com/maintenance.html"
}
}
Otherwise, you would have an endless loop because it's not checking if you're already on that page.
If you want a iRule based maintenance page, the Codeshare page has some examples of that.
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