All posts tagged code

.htaccess Snippet: Maintenance Mode

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

1
2
3
4
5
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123     # <--YOUR IP HERE
RewriteCond %{REQUEST_URI} !^/maintenance\.html$                      
RewriteRule ^(.*)$ http://yoursite.com/maintenance.html [R=503]