Tutorials

How to put your WordPress site in maintenance mode

This tutorial contains affiliate links. If you sign up through them, I may earn a commission at no extra cost to you.

Launching a site is always stressful. Even publishing a minor update to an existing site can become more involved than you expect, and what you put aside five minutes for ends up being an afternoon of frantic fixing. This is where maintenance mode comes in handy. Instead of looking at a broken website, visitors see a friendly notice telling them that you’ll be back soon, while you keep working on the real site behind it, logged in as usual.

In this tutorial, we’ll put a site in maintenance mode with a plugin and a page you design with blocks, look at what search engines see while it’s on, and turn on WordPress.com’s version of it. At the end, there’s a section on WordPress’s own maintenance mode: the one you get during updates, and how to fix a site that gets stuck in it.

Turn on maintenance mode with a plugin

WordPress has no setting for maintenance mode, so you need a plugin. There are plenty to choose from. We’ll use LightStart (formerly WP Maintenance Mode), the first plugin WordPress.com suggests in its own guide to maintenance mode. It’s free, has 400,000+ active installations, and lets you use any page on your site as the maintenance page. That means you can design it with blocks, in the same editor as the rest of your site.

First, make the page:

  1. Go to “Pages” → “Add Page”.
  2. Write the message you want visitors to see, like what you’re working on and when you’ll be back.
  3. Publish the page.

Visitors see the page on its own, without your site’s header, footer or page layout. It keeps your theme’s fonts and colors, but the content goes right up to the edges of the screen. To give it some room, put everything inside a Cover or Group block, and add padding to it.

Then install the plugin and point it to the page:

  1. Go to “Plugins” → “Add Plugin”, search for “LightStart”, and install and activate it.
  2. The plugin opens a setup guide. It offers to install two more plugins, for templates and AI, and the step after asks to track your usage. None of them are needed for what we’re doing here, so untick them and continue.
  3. Go to “LightStart” in the admin menu, and open the “Design” tab.
  4. Choose your page under “Select page”.
  5. Open the “General” tab, set “Status” to “Activated”, and click “Save settings”.

The site is now in maintenance mode. As an administrator, you still see the regular site when you’re logged in, so check the maintenance page in a private browser window. When you’re done, set “Status” back to “Deactivated”.

What search engines see

A good maintenance mode plugin answers with a 503 status code, “Service Unavailable”, instead of the normal 200. That tells Google the site is down for now, not gone, so it keeps your pages in its results and comes back later. LightStart does this by default.

It works for a short break, like a few hours or a weekend. If the site stays in maintenance mode for longer than a day or two, Google starts dropping its pages from the results, and you’ll have to wait for them to come back once the site is up again.

For a site that isn’t launched yet, and has no pages in Google to lose, that doesn’t matter. Plugins often call that “coming soon” mode. If you just want to keep a new site out of Google while visitors can still see it, here’s how to discourage search engines from indexing your WordPress site.

On WordPress.com

On WordPress.com, you don’t need a plugin. Go to “Settings” → “Reading”, and choose “Coming Soon” in the “Site Visibility” section. Visitors see a “Coming Soon” notice instead of your site, while you can still see and edit it when you’re logged in. Switch it back to “Public” when you’re done.

The same section has a “Private” option, which only shows the site to you and the people you invite.

WordPress’s own maintenance mode

WordPress does have a maintenance mode of its own, but it isn’t something you turn on. It kicks in for a few seconds each time you update WordPress, a plugin, or a theme, so visitors don’t see the site while files are being replaced. Anyone who visits right then sees this message:

Briefly unavailable for scheduled maintenance. Check back in a minute.

It also answers with a 503, so search engines don’t mind. When the update is done, the message goes away on its own.

When the site gets stuck in maintenance mode

WordPress turns maintenance mode on by adding a file called .maintenance to the main folder of your site, and removes it when the update is done. If the update is interrupted, like when the browser tab is closed or the server times out, the file can be left behind, and the site keeps showing the message.

Wait ten minutes first. WordPress ignores a .maintenance file that’s more than ten minutes old, so most sites fix themselves.

If the message is still there after that:

  1. Open your site’s files with your host’s file manager or an FTP app.
  2. Go to the folder with wp-config.php in it.
  3. Delete the .maintenance file. Files that start with a dot are hidden by default, so you might need to turn on “Show hidden files” first.

Then go to “Dashboard” → “Updates” and check that the update finished. If it didn’t, run it again.

With WP-CLI

If you use WP-CLI, you can turn WordPress’s own maintenance mode on and off yourself:

wp maintenance-mode activate
wp maintenance-mode deactivate
wp maintenance-mode status

It adds the same .maintenance file as an update does, so the same ten-minute limit applies: after that, WordPress ignores the file and the site is back, even if you haven’t deactivated it. That makes it a good fit for a short scripted job, like a deploy, but not for a redesign. For that, use a plugin.

Change the message

If you want your own message during updates, add a file called maintenance.php to the wp-content folder. WordPress shows that file instead of its own message, and still sends the 503. It’s plain PHP and HTML, since the rest of WordPress isn’t loaded at that point, so blocks and theme styles won’t work there.

Published November 30, 2026