Forum Discussion
Irule redirect - periodic
Dear Lidev,
Thanks for your quick answer.
I'm not sure at all about my code, can you please review it and let me know your thought ?
when RULE_INIT {
set static::START_DATE "2020-02-21 00:00"
set static::END_DATE "2020-08-14 00:00"
}
when HTTP_REQUEST {
if { ( [clock seconds] < $static::START_DATE) || ( [clock seconds] > $static::END_DATE) } {
switch -exact [HTTP::uri] {
"/uriname" {HTTP::redirect "https://www.blabla.html"}
else
switch -exact [HTTP::uri] {
"/uriname" {HTTP::redirect "https://www.blablabla.html"}
}
}
Thanks,
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