Is it possible to put a magento site under an maintenance flag so that visitors will get a message that the site is under construction? I can\'t find this setting in the admin a
If you need to put Magento in maintenance mode only in frontend, leaving admin enabled for authentication you can try these steps:
Search for the content below (around line 63):
if (file_exists($maintenanceFile)) {
Replace for:
if (file_exists($maintenanceFile) && !preg_match('/^\/(admin|index.php\/admin)/', $_SERVER['REQUEST_URI'])) {
Create a blank file named maintenance.flag in your Magento root installation:
$ touch maintenance.flag
This solution was inspired in the maintenance mode used in Opencart that uses the same behavior.