Forum Discussion
siyadh_121603
Nimbostratus
Dec 20, 2014Maintenance 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
Cirrostratus
Dec 20, 2014Try 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"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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