Magento – 1.9.0.1 Maintenance Mode

maintenance

Could someone please advise how to put 1.9.0.1 into Maintenance Mode? Or is this version not supported?? I found some instructions, however I don't have the option for Maintenance Mode for Ver 1.9.0.1 under System>Configuration>General

Best Answer

Magento goes to maintenance mode when you create a file named maintenance.flag to your Magento home directory. This is how Magento handles it:

$maintenanceFile = 'maintenance.flag';

if (file_exists($maintenanceFile)) {
    include_once dirname(__FILE__) . '/errors/503.php';
    exit;
}
Related Topic