Forum Discussion
mawan_revera
Altostratus
Oct 06, 2019policy and irule multiple redirect not allowed
Hi - i have a Question - i have a policy that does a redirect - meaning if URI path is / redirect to /abc for maintenance window i have a i rule that detects time and should redirect to a maintenan...
Oct 06, 2019
Hi mawan_revera
You can add /abc redirect to iRule.
if {$now > $static::start and $now < $static::end} {
if { not [class match [IP::client_addr] equals private_net] } {
HTTP::redirect "http://mytedirect-maintenance"
}
} else {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://[HTTP::host]/abc"
}
}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