Forum Discussion
FMA
Nimbostratus
Nov 10, 2016Old story - maintenance page iRule
Hello,
I know this topic has been discussed many times already but there is one thing I got stuck with - is it possible to combine two of these actions into a single iRule? :
when HTTP_REQUEST {...
JG
Cumulonimbus
Nov 15, 2016Or:
when HTTP_REQUEST {
set REDIRECTURL "https://example.com"
switch [HTTP::uri] {
"/we_have_moved.png" {
HTTP::respond 200 content [ifile get we_have_moved.png] "Content-Type" "image/gif"
}
default {
HTTP::respond 200 content "\
The site has been moved\
The webiste has moved to \
Please update your bookmarks!\
You will be redirected in\
50 seconds \
\
\
\
"
}
}
}
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