Forum Discussion
Ranvir_Floura_7
Nimbostratus
Sep 22, 2007Redirect during web site maintenance
Here is the scenario that I need some help with. I have a web site (https://my.web.com)that undergoes maintenance once a month and during that maintenance window, i would like regular users to go to ...
Deb_Allen_18
Sep 25, 2007Historic F5 Account
The first rule I think should have a negative condition to redirect everyone but the admin IP range, other that that looks fine:
when HTTP_REQUEST {
if {!([IP::addr [IP::client_addr] equals 10.1.3.0/255.255.255.0])}{
HTTP::redirect "https://my.web.com/"
}
}lfowkes' example is great for more specific requirements, but I do see a logic problem there: The redirect to https will never happen since the condition for the same condition is specified for the redirect to https immediately above it.
/deb
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