Question

Where can I create a Maintenance Page and activate it in Magento Admin? I'm using magento enterprise edition 1.14 version

Thanks!

Was it helpful?

Solution

To make the magento store on Maintenance mode, you just need to create a file name maintenance.flag on the root.

The store will automatically go in maintenance mode. To modify the maintenance page you need to goto errors/default/503.phtml file and modify it as per your requirement.

To allow website access for certain ip address you can edit your index.php file as below and add you IP address in the allowed list seperated by comma.

$ip = $_SERVER['REMOTE_ADDR'];
$allowed = array('192.168.0.0');
if (file_exists($maintenanceFile) && !in_array($ip, $allowed)) {
    include_once dirname(__FILE__) . '/errors/503.php';
    exit;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top