RewriteEngine On RewriteCond %{REQUEST_URI} !=/maintenance.html RewriteCond %{REMOTE_ADDR} !^YourIPAddress$ RewriteRule $ /maintenance.html [R=503,L]