1. Home
  2. »
  3. WordPress Maintenance and Support
  4. »
  5. Using Maintenance Mode in WordPress

Using Maintenance Mode in WordPress

Using Maintenance Mode in WordPress

When you need to make changes or updates to your WordPress site, it’s often a good idea to put your site into maintenance mode. This ensures that visitors see a friendly message instead of broken pages while you work behind the scenes. In this tutorial, we’ll explore how to enable maintenance mode in WordPress using both manual methods and plugins.

To enable maintenance mode manually, you can create a simple HTML file named “maintenance.html” with a message informing visitors that the site is undergoing maintenance. Then, you need to add the following code to your site’s .htaccess file:

# BEGIN Maintenance Mode
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123.456.789.000
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=302,L]
</IfModule>
# END Maintenance Mode

This code snippet will redirect all visitors to the maintenance.html page except for the IP address specified in the RewriteCond line. Remember to replace “123.456.789.000” with your own IP address to access the site normally.

If you prefer a more user-friendly approach, you can use plugins like “WP Maintenance Mode” or “Coming Soon Page & Maintenance Mode by SeedProd.” These plugins offer customizable maintenance pages with options to add countdown timers, social media links, and email subscription forms.

To use the “WP Maintenance Mode” plugin, simply install and activate it from the WordPress plugin repository. Then, navigate to the plugin settings to customize the maintenance page content, background, and other settings. Once configured, your site will automatically display the maintenance mode page to visitors.

Remember to disable maintenance mode once you’ve completed your updates to restore normal site access. Whether you choose to enable maintenance mode manually or with a plugin, it’s essential to keep your visitors informed and engaged during site maintenance periods.

For more information on maintenance mode in WordPress and plugin development, check out the WP Maintenance Mode plugin or explore the WordPress Codex for additional resources.

Shashika De Silva

Shashika De Silva

Hey there! I’m a seasoned PHP developer with over 10 years of experience crafting awesome WordPress plugins and themes. I specialize in creating scalable and robust solutions for WordPress and WooCommerce, ensuring everything runs smoothly. Whether it’s cross-platform software development, web development, or diving into Sheets/Excel with Appscript, Macros, and VBA, I’ve got you covered. I’m all about delivering top-notch results that go beyond expectations. Let’s team up and turn your ideas into reality, making your project shine! Looking forward to working together and achieving something remarkable!

Select By Category

Flashify.Lab

Join our team
to create the best digital solutions.

Enhance your WordPress site’s functionality with custom plugins tailored to your unique needs. Our expert developers specialize in creating robust plugins that seamlessly integrate with WooCommerce, ensuring a streamlined user experience and enhanced site performance. Transform your ideas into reality with our bespoke plugin development services today

Scroll to Top