cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Maintenance Landing pages in magento 2 ?

How to create Maintenance Landing pages in magento 2 ?

Hi guys ,

                  i want to design new Maintenance Landing pages in magento2.so ,when internal backups, maintenance, and enhancements are installed, it will redirect to an actual page instead of it looking like the site is broken. is this possible in magento 2 ?

How can i achieve it. any guidence from anyone ?

4 REPLIES 4

Re: How to create Maintenance Landing pages in magento 2 ?

You need to run command when you are doing any process for a site related to maintenance, backup or any changes,

 

You need to enter command 

php bin/magento maintenance:enable

Once Your work is done,

You can get back to a normal stage of a site by running a command,

php bin/magento maintenance:disable

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: How to create Maintenance Landing pages in magento 2 ?

You can create maintenance landing page in magento 2 with below way as per your requirement.

 

  1. Create the custom maintenance page
  2. Custom maintenance page for Apache
  3. Custom maintenance page for nginx

If Issue Solved, Click Kudos/Accept As solutions.

If Issue Solved, Click Kudos/Accept As solutions.

Re: How to create Maintenance Landing pages in magento 2 ?

you can simply enable maintenance mode or you can create custom page for coming soon page.

Step 1 - Create an under Construction HTML page

Create an index.html under construction page
Upload this page to your root magento directory
(you have already made that backup, right>?)

Step 2 - Update your .htaccess file

Add the following line to the top of your .htaccess file in the root directory of your magento installation

DirectoryIndex index.html index.php

Also, upload this file to your root magento directory
(rest assured if anything goes wrong, you’ve got that backup!)
This tells the system to use your index.html file before the index.php, this is essential, otherwise your site will show as usual.

Step 3 - Test your front end and continue working

Your frontend should now show the under construction / maintenance page.
To continue working on your site, simply navigate to your frontend and add /index.php
e.g.
www.yourdomainname.com - goes to the under construction HTML page
www.yourdomainname.com/index.php - goes to your website for development purposes
Once everything is backup and running, simply add a hash (#) to the command line in your htaccess file:
#DirectoryIndex index.html index.php
 

 

Thanks

Re: How to create Maintenance Landing pages in magento 2 ?

Hi @bharath553,

 

You can create Maintenance landing pages in Magento 2 pretty easily with Coming Soon & Maintenance Page plugin. It allows you to customize landing page templates to match your design. You can also display countdown timer & launch your store automatically. You will find the detailed steps for using it right here