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
Try this then. If you want to add more exceptions, just append them to the first set of URI checks (the
-
denotes an additional value is on the next line). The -glob
allows the use of wildcards (the *
character). So in this case, anything starting with /images/
will be caught in that condition.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/maintenance.html" -
"/images/*" {
Do nothing. These are exceptions
return
}
default {
HTTP::redirect "/maintenance.html"
}
}
}
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