docs:apache_web_server:site_maintenance_message

Site Maintenance Message

You want to quickly take a site down for maintenance. All visitors see the temporary message while files are being uploaded, but you can see that the site works before making it live again.

  1. create a maintenance.html file at the root of your site (best not to use images unless you are sure they won't be changed)
  2. modify your htaccess file as follows:
        Options +FollowSymlinks
        RewriteEngine on
        RewriteCond %{REQUEST_URI} !/maintenance.html$
        RewriteCond %{REMOTE_HOST} !^888\.888\.888\.888
    
        RewriteRule $ /maintenance.html [R=302,L] 
  3. change the remote host address to your external ip address
  • docs/apache_web_server/site_maintenance_message.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1