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