Forum Discussion
gr0x_33657
Nimbostratus
Nov 03, 2009URI Redirect
Hi,
We would like to redirect all traffic to our maintenance page, so far if someone calls the domain name for example "www.domainname.com" the irule works and redirects the person to "...
hoolio
Cirrostratus
Nov 03, 2009It would be easier to handle if the maintenance page was in a unique directory. You could then check if the requested path started with that directory before redirecting them. This would avoid a redirect loop:
when HTTP_REQUEST {
Check if URI does not start with "/maintenance"
if {not ([HTTP::path] starts_with "/maintenance")}{
HTTP::redirect "/maintenance/maintenance.html"
}
}
As log as any files the /maintenance/maintenance.html page references are under the /maintenance/ directory, this should work.
Aaron
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
