So you have a live site and you need to do some work on it. The first thing you do is enable maintenance mode. But something bad happens when you do that. The whole site is down for everyone, including you. But how are you going to fix the site if you can not even see it? Well, I use something like this.
After you’ve created a file in a root of your Magento website with “maintenance” text in it, site will go in to the maintenance mode. Now if you open your index.php and look around line 64 (Magento version 184.108.40.206). You will see something like this:
Now you want to add some IPs so you and some other remote developers can connect to the site. To everyone else you can show your custom under construction template. The code fix is as follows:
That’s it 🙂