Welcome Guest | Login

Downtime/Maintenance time temp page.

good day everyone!

id just like to ask if there was a way to create a temporary page when there is ongoing maintenance on the servers? thanks.

i know this may be a noob question but please bear with me :p thanks.

2008-12-04 07:22 AM

You can put rewrite rules to redirect all the requests to  maintenance page as below. If the file system/maintenance.html exists it will be served.

RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{REQUEST_URI} !\.(css|jpg|gif|png)$
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ %{DOCUMENT_ROOT}/system/maintenance.html [L]

If your application is running on mongrel or mod rails you need to put these rules inside Apache configuration. Please contact support team for this. For FCGI apps you can have it in the .htaccess file.

2008-12-04 08:36 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!