When updating my magento shop, I would like to redirect all IP except mine to maintenance page.
I used to do that with .htaccess file :
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REMOTE_HOST} !^1.2.3.4
RewriteCond %{REMOTE_HOST} !^5.6.7.8
RewriteRule .* http://www.google.fr [R=302,L]
It was working well, but I now have some problems. Sometimes it works, sometime not, and I have to disable redirection to access my site. Sometimes I can access the frontend but not the backend...
Any idea?
Thanks for your help,