How to put magento in maintenance

2019-03-09 21:32发布

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 area.

Another solution will also be welcome.

Any help would be appreciated.

Thank you.

14条回答
The star\"
2楼-- · 2019-03-09 22:12

Just add a blank file called maintenance.flag to your root.. job done

A neater solution is to use this extension.

it allow you to set the store up so that once logged into the back end you have access to the front + a few other neat features

查看更多
闹够了就滚
3楼-- · 2019-03-09 22:12

You can use Folio3: Maintenance Mode plugin to easily put your Magento Frontend in Maintenance Mode ... It has many more features that can help you during the development phase of the project.

  1. Customer Experience
    • Visitors will see a maintenance page with a friendly message letting them know that the site is temporarily unavailable for up-gradation.
    • Optionally the visiting uses will also see a countdown timer letting them know when the site will be back available.
    • The impact on user is good as oppose to a facing a downtime by the website being inaccessible.
  2. Admin Capabilities:
    • Admin can choose which static block to show on this page.
    • Selected IPs can also be provided that can still access the storefront.
    • Admin user can get full access front end if configured.
    • There's an option to show a countdown timer and expected up date/time.
    • Admin user can get full access front end if configured.
    • A very powerful tool for site admins.

If you are using Magento2, then you can download the Magento2 version of Folio3: Maintenance Mode.

查看更多
不美不萌又怎样
4楼-- · 2019-03-09 22:15

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

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

查看更多
劳资没心,怎么记你
5楼-- · 2019-03-09 22:18

These are good modules to put your magento sites into maintaince 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 maintaince.flag file which put your site into maintaince 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.

查看更多
地球回转人心会变
6楼-- · 2019-03-09 22:21

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

查看更多
We Are One
7楼-- · 2019-03-09 22:22

The following would work with an apache installation (need to check with others).

You could create your own custom site under maintenance html page say index.html and place it in the root directory of your installation.

Open the .htaccess folder and rename the default page from index.php to index.html. Restart Apache. Once you are done rename the default page back to index.php.

It should work.

查看更多
登录 后发表回答