Magento is an ecommerce software available in three different versions, one of which is free to download and install. There are many ecommerce softwares around though Magento is slightly different. It uses a MVC approach in its file structure and has many features built-in thus saving you the need to add modules to do the job.
Though it does a have a great deal of modules to supplement the functionality as well. It is possible that you have an existing Magento website and need changing some configuration or load new products or modify existing products.
Magneto can be placed into maintenance mode by simply creating new file by the name of maintenance.flag and placing it in the root folder. Once this file is in place and you attempt to load the website Magento will load the Maintenance page. This means that you cannot even access the admin section of the website. In order to make an exception and be able to access the admin section will need to edit the index.php file and place the following code on approximately line 47:
$ip = $_SERVER[‘REMTE_ADDR’];
$allowed = array(’69.65.23.100’, ‘2.2.2.2’ );
If(file_exists)($maintenanceFile)){ if(file_exists($maintenanceFile) && (!in_array($ip, $allowed)){
That is it you are all set with maintenance page although if you wish to have a customised maintenance page then you need to edit the template located at the following location:
errors/default/503.phtml
Why Choose Alakmalak As a Your Growth Partner?
Alakmalak is a web development company in India that offers services for several technologies. There have been around for a very long time and have developed over 2500 projects for clients all around the world. They have highly skilled web developers with a great deal of experience.
- How to enable maintenance mode in magento?
- How to put magento to maintenance mode?