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.


  • A domain name (e.g.,
  • 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.


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:

Was this article helpful?