Hello Magento Friends,

Today I am going to help you make your Magento 2 maintenance page informative and user-friendly. 

You can customize the default maintenance page when your Magento 2 site is under maintenance. Show user-friendly maintenance page with countdown timer.

When you put your site in maintenance then Magento shows a default maintenance message as an error, exception, logs or reports, etc. This does not seem amiable to customers. Hence, making Magento’s default maintenance message user-friendly is a good idea.

Steps to Customize Maintenance Default Page in Magento 2:

Step 1: Navigate to the Magento root directory and run the below command from the terminal for enabling maintenance mode in Magento.

Step 2: After enabling maintenance mode your homepage looks like the below if developer mode is set to your Magento

default maintenance page

For default and production mode, it shows as an error log or as a report message. This creates a bad user experience so you need to customize the page.

Step 3: Now to customize the Magento default maintenance page, open the .htaccess file from the Magento root directory.

Note: if you are using Magento version 2.4.x, then you need to open the .htaccess file from the pub directory of Magento.

Step 4: Then, find this code from .htaccess file: “DirectoryIndex index.php”, Now modify this code to “DirectoryIndex maintenance.html”.

Step 5: Create a maintenance.html file on your Magento root directory.

Note: If you are using Magento version 2.4.x, then you need to Create a maintenance.html file under the pub directory of Magento.

Now add the below code

You Can modify the above code as per your requirement.

Step 6: Now open the Magento home page, your Magento default maintenance page has been changed

custom maintenance page

Conclusion:

Hence, this way you can change the default message of the maintenance page of your Magento 2 store. Check out another way to Customize the Maintenance Page in Magento  2.

Alternatively, you can use Maintenance Page Extension for Magento 2 to make it more attractive and informative. Check How to Integrate Maintenance Page Extension for Magento 2.

In case you face any difficulty in the above steps, you can contact me via the comment section.

Happy Coding!

Click to rate this post!
[Total: 4 Average: 5]