reillo / mage_maintenance
Simple template for magento errors and maintenance mode
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Language:CSS
Type:magento-module
This package is not auto-updated.
Last update: 2025-01-02 03:16:59 UTC
README
Simple template for magento maintenance mode and allow white listed ip to access the site when maintenance mode.
Installation
- Download zip files
- Extract files at your magento installation
- For white listed ip addresses. Replace or backup your original
index.php
then use and rename theindex.php.simple
toindex.php
. - or, use and insert the code below in your
index.php
for whitelisted ip
/** * Maintenance mode * note! insert me after `define('MAGENTO_ROOT', getcwd());` */ $allowed_ip = array('127.0.0.12', '60.241.193.31'); if (file_exists(MAGENTO_ROOT.'/maintenance.flag') && !in_array($_SERVER['REMOTE_ADDR'], $allowed_ip)) { include_once __DIR__.'/errors/503.php'; exit(); }
License
This project is open-sourced software licensed under the MIT license.