how to set wordpress site to maintenance mode

Don’t Panic! How to Put Your WordPress Site in Maintenance Mode Like a Pro

Why Putting Your WordPress Site in Maintenance Mode Matters

Learning how to set WordPress site to maintenance mode is a vital skill for any site owner. When you need to update a plugin, switch themes, or fix a bug, you risk showing visitors broken pages or error messages. That’s where maintenance mode comes in.

Instead of displaying a messy, half-finished website, maintenance mode shows a professional “we’ll be right back” page. Logged-in admins can still access and work on the site, but everyone else sees a polite holding page. This prevents a bad user experience, which is critical since 88% of online consumers are less likely to return to a site after a poor experience. It also protects your SEO by telling search engines the downtime is temporary.

Here’s a quick overview of the methods we’ll cover:

Quick Method (Plugin):

  1. Install a maintenance mode plugin (like WP Maintenance Mode or SeedProd).
  2. Steer to the plugin’s settings in your WordPress dashboard.
  3. Set the status to “Activated.”
  4. Customize your maintenance page.
  5. Save your changes.

Manual Method (Code):

  1. Access your site’s files via FTP or File Manager.
  2. Add a code snippet to your theme’s functions.php file or create a .maintenance file.
  3. Remove the code or file when you’re finished.

I’m Kevin Gallagher, and with over fifteen years of experience running a web design company and founding wpOncall, I’ve guided countless site owners through this process. Let me walk you through both the simple plugin method and the advanced manual approach.

Quick look at how to set wordpress site to maintenance mode:

What is WordPress Maintenance Mode and Why Is It Crucial?

Diagram showing a visitor being redirected to a maintenance page instead of a broken site - how to set wordpress site to maintenance mode

WordPress maintenance mode is a temporary state that displays a user-friendly placeholder page to your visitors while you perform updates or repairs. Instead of seeing a potentially broken site, they see a message that the site is temporarily unavailable. Meanwhile, logged-in administrators can still access the full site to work on it.

This is crucial for two main reasons:

  1. User Experience: A visitor encountering errors or broken layouts is likely to leave and never return. As studies show, 88% of online consumers are less likely to return to a site after a bad experience. Maintenance mode prevents this negative impression and protects your brand’s reputation.
  2. SEO Preservation: When a site shows errors, search engine crawlers might think it’s permanently down, which can harm your rankings. A proper maintenance mode uses an HTTP 503 “Service Unavailable” status code. This tells search engines like Google that the downtime is temporary and intentional, asking them to check back later without penalizing your site’s SEO.

When to Use Maintenance Mode

Knowing when to set WordPress site to maintenance mode is key. It’s not for every minor edit, but it’s essential for significant changes. Here are the primary scenarios:

  • Major Design Changes: Switching themes or performing a major site redesign.
  • Significant Updates: Installing or updating crucial plugins, or performing major WordPress core updates.
  • Backend Operations: Migrating to a new server, optimizing the database, or fixing critical bugs.
  • New Functionality: Adding complex features like an e-commerce system or membership portal.
  • Security Cleanup: Taking the site offline to securely clean up after a hack.

For minor content edits, maintenance mode is likely overkill. For anything that could break the site or look unprofessional, it’s the safe choice.

Maintenance Mode vs. a ‘Coming Soon’ Page

Though similar, these two serve different purposes.

  • Maintenance Mode is for an existing, live website that is temporarily down for updates. It uses an HTTP 503 status code to tell search engines to check back later, protecting SEO. The audience is your existing user base, and the duration is typically short (minutes to hours).

  • A ‘Coming Soon’ Page is for a new website that has not launched yet. It’s designed to build anticipation and capture leads before the official launch. It uses a standard HTTP 200 status code, as it’s considered a live page, and can be active for weeks or months.

How to Set WordPress Site to Maintenance Mode: The Easy Way (Using a Plugin)

For most users, a plugin is the easiest and safest way to set WordPress site to maintenance mode. This method requires no coding, is beginner-friendly, and provides easy customization options. Plugins automatically handle the technical details, like sending the correct HTTP 503 status code to protect your SEO.

Generic WordPress plugin settings page for maintenance mode - how to set wordpress site to maintenance mode

Step 1: Find and Install a Suitable Maintenance Mode Plugin

The WordPress repository has many great options. Some of the most popular and reliable choices include:

  • WP Maintenance Mode & Coming Soon: A popular, free, and easy-to-use plugin with solid customization features.
  • SeedProd: A powerful page builder that started as a maintenance mode plugin. The free version is excellent for creating maintenance pages with a drag-and-drop interface.
  • LightStart: A simple, lightweight option for creating a clean maintenance page.

To install your chosen plugin:

  1. In your WordPress dashboard, go to Plugins > Add New.
  2. Search for the plugin by name (e.g., “SeedProd”).
  3. Click “Install Now” and then “Activate”.

Step 2: Configure and Customize Your Maintenance Page

After activation, find the plugin’s settings, usually under “Settings” or its own menu item. Here, you can tailor the maintenance page to fit your brand.

Key settings to configure include:

  • Status: The main toggle to activate or deactivate maintenance mode.
  • Access: Specify which user roles (like Administrator) can bypass the maintenance page and view the live site.
  • Design: Customize the look and feel. Add your logo, set a background image or color, and write your maintenance message.
  • Modules: Add useful elements like a countdown timer to show when the site will be back, social media icons, or a newsletter signup form to capture leads.

Some plugins like SeedProd or Elementor (which has a built-in maintenance mode) offer a full page builder experience for maximum control over the design.

Step 3: Activating and Deactivating Maintenance Mode

Once your page is designed, putting your site into maintenance mode is simple.

To Activate:

  1. Return to the plugin’s main settings.
  2. Find the “Status” toggle and set it to “Activated” or “Enabled.”
  3. Save your changes.
  4. Important: Open your website in an incognito browser window to verify that the maintenance page is showing correctly to the public.

To Deactivate:

  1. When your work is done, go back to the plugin’s settings.
  2. Set the “Status” toggle to “Deactivated” or “Disabled.”
  3. Save your changes.
  4. Clear your website and browser cache to ensure the live site is visible to everyone.

The Advanced Method: Manually Enabling Maintenance Mode with Code

For users comfortable with code or those who need to enable maintenance mode without dashboard access, a manual approach offers direct control. This method is more technical and requires careful execution.

Code editor showing a snippet of PHP code - how to set wordpress site to maintenance mode

Critical Warning: Always create a full backup of your site’s files and database before editing code. A mistake in files like functions.php or .htaccess can take your entire site offline. If you’re not confident, it’s best to use a plugin or hire an expert WordPress maintenance service.

You will need an FTP client like FileZilla or your host’s File Manager to access your site’s files.

How to set WordPress site to maintenance mode using your theme’s functions.php file

This method uses a PHP snippet to show a maintenance message to non-admin users. It’s best practice to add this code to a child theme’s functions.php file to prevent it from being erased during a theme update.

  1. Connect to your site via FTP or File Manager.
  2. Steer to your active theme’s folder at wp-content/themes/your-theme-name/.
  3. Download a backup of the functions.php file.
  4. Open the file and add the following code snippet at the end:

    // Activate WordPress Maintenance Mode
    function wp_maintenance_mode() {
    if (!current_user_can('edit_themes') || !is_user_logged_in()) {
    wp_die('

    Under Maintenance


    Our site is currently undergoing scheduled maintenance. Please check back soon.');
    } } add_action('get_header', 'wp_maintenance_mode');

    This code checks if the visitor is a logged-in administrator. If not, it displays a simple maintenance message. You can customize the HTML inside the wp_die() function.

  5. Save the file and upload it back to your server.

To disable maintenance mode, simply remove the code you added from the functions.php file and re-upload it.

How to set WordPress site to maintenance mode with a .htaccess redirect

This advanced method uses your server’s .htaccess file to redirect all traffic to a static HTML page, which is useful if WordPress itself is inaccessible. First, create a maintenance.html file with your maintenance message and upload it to your WordPress root directory.

  1. Connect to your site via FTP or File Manager and locate the .htaccess file in your root directory. (Ensure you can see hidden files.)
  2. Download a backup of the .htaccess file.
  3. Open the file and add the following code snippet for redirection at the very top:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
    RewriteCond %{REQUEST_URI} !^/maintenance\.html$
    RewriteRule ^(.*)$ /maintenance.html [R=307,L]
    
    • Crucially, replace 123.456.789.000 with your own IP address. This allows you to bypass the redirect and access the site.
    • This code redirects all other visitors to your maintenance.html page with a 307 Temporary Redirect status.
  4. Save the file and upload it to your server.

To disable it, remove the code from your .htaccess file.

Troubleshooting: What to Do When Your Site Gets Stuck in Maintenance Mode

It’s a common WordPress issue: you run an update, and now your site is stuck showing the message, “Briefly unavailable for scheduled maintenance. Check back in a minute.” Don’t worry, this is usually a very simple fix.

Why the “Stuck in Maintenance Mode” Error Happens

When you update WordPress core, themes, or plugins, WordPress automatically creates a temporary file named .maintenance in your site’s root directory. This file is what triggers the default maintenance message.

Normally, WordPress deletes this file as soon as the updates are complete. However, if the update process is interrupted—due to a server timeout, a browser being closed, or a plugin conflict—the .maintenance file may not get deleted. As a result, your site remains locked in maintenance mode, inaccessible even to administrators.

Step-by-Step Fix

To get your site back online, you just need to manually delete the .maintenance file.

  1. Connect to Your Site’s Files: Use an FTP client (like FileZilla) or your hosting provider’s File Manager to access your server.
  2. Steer to the Root Directory: Go to the main folder of your WordPress installation, which is often public_html. This is where you’ll find folders like wp-admin and wp-content.
  3. Find and Delete the .maintenance File: Look for a file named .maintenance. Since it’s a hidden file (the name starts with a dot), you may need to enable the “Show Hidden Files” option in your FTP client or File Manager. Once you find it, simply right-click and delete it.
  4. Refresh and Clear Cache: After deleting the file, visit your website. You may need to clear your browser cache and any caching plugins on your site to see the live version.

Your site should now be accessible again. This simple process resolves the issue almost every time.

Frequently Asked Questions about WordPress Maintenance Mode

We’ve covered the core methods of how to set WordPress site to maintenance mode. Here are answers to some common questions.

Will putting my site in maintenance mode hurt my SEO?

No, if done correctly, maintenance mode protects your SEO. A proper maintenance mode setup sends an HTTP 503 “Service Unavailable” status code. This tells search engines like Google that the site is down for maintenance temporarily and they should check back later. It prevents them from thinking your site is permanently gone, which would harm your rankings. Good plugins handle this automatically. If maintenance lasts more than a day, the SEO impact is still minimal and should recover once the site is back online and recrawled.

What information should I include on my maintenance page?

A good maintenance page maintains professionalism and keeps visitors informed. Be sure to include:

  • A Clear Message: Politely explain that the site is temporarily down for improvements.
  • Branding: Add your logo and use your brand colors to maintain a consistent look.
  • Estimated Time of Return: If possible, state when the site will be back. A countdown timer is very effective.
  • Contact Information: Provide an email address for urgent matters.
  • Social Media Links: Encourage visitors to connect with you on other platforms.
  • A Call to Action: Consider adding a newsletter signup form to capture leads while the site is down.

Can I still work on my site while it’s in maintenance mode?

Yes, absolutely. This is a key benefit of maintenance mode. While visitors see the maintenance page, logged-in users with the correct permissions (usually administrators) can access the entire WordPress dashboard and preview the front end of the site as usual. This allows you to work on updates, test changes, and confirm everything is perfect before making the site live again. Most plugins allow you to configure which user roles can bypass the maintenance screen.

Conclusion: Keep Your Site Professional, Even During Downtime

Learning how to set WordPress site to maintenance mode is a core skill for managing a professional website. It protects your brand, ensures a good user experience, and safeguards your SEO during updates and repairs. Whether you opt for a user-friendly plugin or a manual code-based method, the goal is to communicate clearly with your audience while you work behind the scenes.

A well-crafted maintenance page turns potential frustration into a professional touchpoint, reinforcing your commitment to quality and encouraging visitors to return. This proactive approach is a hallmark of smart website management.

For those in Santa Rosa, CA, who prefer a hands-off solution, wpOncall offers dedicated WordPress website maintenance and management services. We handle the updates, backups, and security, ensuring your site is always in peak condition so you can focus on your business. Let us take the stress out of website maintenance.