How To Add A Website Under Maintenance Page To A WordPress Site

How To Add A Website Under Maintenance Page To A WordPress Site

WordPress is an open source content management tool. It is written in PHP and MySQL. It is used to make beautiful full-fledged websites easily. A website has to undergo upgrades and maintenance from time to time to make the user experience rich. Visitors are sometimes are affected when the sites are being upgraded. In this tutorial, we will walk you through two different processes of adding a Website Under Maintenance Page to your WordPress site.

Prerequisites

  • A domain name (e.g., example.com)
  • Admin Dashboard Access
  • FTP Application
  • Text Editor (Sublime, Notepad, etc)

Step 1:

In this first process, you can

add a website maintenance page by creating a custom file maintenance.php

and copy this into the root directory of the wp-content folder. The wp-content folder can be accessed through File Manager app of the cPanel or can be accessed via FTP application. It is located inside the public_html directory.

Step 2:

You need to

put correct HTTP status codes

in this page so that sites like Google and other search engines know that the site is under maintenance. Search engines will index this page and will be good for SEO purpose too.

The simple maintenance.php code is shown below:

The above code gives information that the site will be back in 600 seconds or 10 minutes. It passes this information to search engines that your site is unavailable and to try back again in 10 minutes.

Step 3:

You can add a custom Website Under Maintenance Page through a popular WordPress plugin too

Go to this Plugin site and download the plugin. Install it on your WordPress site.

After installing the plugin, you can enable Maintenance mode by simply clicking on the Enable Maintenance Mode checkbox and save changes.

It also gives the option to write down our own custom maintenance message and to design according to your needs. You can add your own logo, favicon and other descriptions.

The Design gives you various options to choose the background color, image, position of the image and other attachments.

Conclusion:

By following the above mentioned two processes, you can set up your own custom Website Under Maintenance page to a WordPress site. Next time you upgrade your site, make sure to add the maintenance page.

 

Check out these top 3 WordPress hosting services:

Hostinger
£2.35 /mo
Starting price
Visit Hostinger
Rating based on expert review
  • User Friendly
    4.7
  • Support
    4.7
  • Features
    4.8
  • Reliability
    4.8
  • Pricing
    4.7
FastComet
£1.41 /mo
Starting price
Visit FastComet
Rating based on expert review
  • User Friendly
    4.7
  • Support
    5.0
  • Features
    4.8
  • Reliability
    4.5
  • Pricing
    5.0
A2 Hosting
£2.35 /mo
Starting price
Visit A2 Hosting
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.8
  • Pricing
    4.0

How to Configure WordPress Page Caching

A savvy website owner understand how important it is to have a website with a qu
4 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How to Secure Your WordPress Website

Millions of websites get hacked every year and many people consider WordPres
5 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How To Create a WordPress Child Theme

Customizing your WordPress theme but want to be extremely safe? Don’t worry. W
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester

How to Fix File and Folder Permissions Errors in WordPress

It's so frustrating when you receive an error while updating your website. File
4 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top