How to put magento in maintenance

后端 未结 13 736
北海茫月
北海茫月 2021-02-01 21:45

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

相关标签:
13条回答
  • 2021-02-01 22:22

    Magento has maintenance.flag support built in. Check this out from

    http://www.nicksays.co.uk/2010/07/enabling-magento-maintenance-mode/

    0 讨论(0)
  • 2021-02-01 22:23

    These are good modules to put your magento sites into maintenance mode anytime you want. http://www.magentocommerce.com/magento-connect/store-maintenance.html

    OR

    If you want fun with working on the code then create maintenance.flag file which put your site into maintenance mode. And if you want to change the template of it then goto errors/default/503.phtml file. Just change the design of it.

    This is a simple solution.

    0 讨论(0)
  • 2021-02-01 22:26

    To enable maintenance mode in Magento, just create empty maintenance.flag file in the root of your Magento store.

    0 讨论(0)
  • 2021-02-01 22:30

    You may check this article, it has info about puting store to the maintenance for several IPs and have some working examples and needed files:

    http://blog.magalter.com/page/how-to-temporarily-block-magento-store-access-put-website-to-maintenance-mode

    0 讨论(0)
  • 2021-02-01 22:34

    I followed this tutorial to put my Magento store to maintenance mode, you may try as below:

    1. Create a file name maintenance.flag in your magento root directory. Contents under this file doesn’t matter, you can keep it empty.

    2. Change the maintenance file (located in magento root -> errors -> default directory) to show proper message when user visits your website. Hop this helps

    0 讨论(0)
  • 2021-02-01 22:36

    I followed this tutorial http://magentoexplorer.com/how-to-show-and-customize-magento-maintenance-mode-page to enable maintenance mode page in Magento, you need to create and upload maintenance.flag file to Magento root folder, however there are some more step for a good Maintenance mode like.

    1. Add exception during maintenance (allow specific IP to visit your site during maintenance). In index.php, add these lines

      $ip = $_SERVER['REMOTE_ADDR']; $allowed = array('x.x.x.x','y.y.y.y');

    2. Edit maintenance mode page Edit maintenance mode page in /errors/default/503.phtml Remove wrap in /errors/default/page.phtml

    Hope this helps.

    0 讨论(0)
提交回复
热议问题