
1. Create a file called maintenance.html and put it in the store root directory. Customize it with your closed for maintenance message.
2. Add the following code to the .htaccess in the store root directory:
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect everyone who's not from your IP
RewriteCond %{REMOTE_ADDR} !123.456.789.10 [NC]
# Allow real files to be served
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !maintenance.html$ /maintenance.html [R=307,L]
</IfModule>
4. When you are not in maintenance mode, comment out all the lines. Uncomment the lines when you want to go into maintenance mode.
Credits: http://www.randomsequence.com/articles/ ... t-your-ip/