Create a decent “sorry this site is down for maintenace” page with a “have a Nice day” message then when you do need to upgrade things use the following htaccess rewrite rule to forward all traffic to this page.

Adapted from Marco’s Webdev Notepad

RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^$
RewriteRule !maintenance/index.html /maintenance/index.html [L,NC,R=302]

From Ask Apache (I like)

ErrorDocument 403
Order deny,allow
Deny from all
Allow from

Last Updated on