This snippet is for putting your clients site into maintenance mode, simply put in your IP address and you have full access while users get redirected to the site down html page :)

RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^123.123.123.123     # <--YOUR IP
RewriteCond %{REQUEST_URI} !^/maintenance.html$                      
RewriteRule ^(.*)$ http://yoursite.com/maintenance.html [R=503]

Be The First One To Comment

Submit Comment