WordPress maintenance mode: take your site offline and back again

For short jobs, the built-in maintenance mode or one WP-CLI command is enough; for longer work, use a maintenance page that returns status 503. A site stuck on the maintenance message almost always has a leftover file called .maintenance.

How WordPress maintenance mode works

WordPress has a built-in maintenance mode that it switches on by itself during every update. It creates a file named .maintenance in the root folder. While that file exists, every visitor sees "Briefly unavailable for scheduled maintenance. Check back in a minute." with HTTP status 503. When the update finishes, WordPress deletes the file.

The file holds only a timestamp. WordPress treats maintenance as over once that timestamp is more than ten minutes old. If the message still shows, for example because a cache stored it, deleting the file and purging the cache fixes it.

Fixing a site stuck in maintenance mode

  1. Open the WordPress root folder via SFTP or your hosting file manager, the folder that contains wp-config.php.
  2. Enable hidden files, since names starting with a dot are often not shown.
  3. Delete .maintenance.
  4. Purge the page cache and, if you use one, the CDN cache.
  5. Go to Dashboard → Updates, check whether the interrupted update completed and rerun it if needed.

With SSH it is quicker:

wp maintenance-mode status
wp maintenance-mode deactivate

Updates usually fail because of a timeout, low disk space or a dropped connection. Afterward, check that the affected plugin is complete. For a safer routine next time, see WordPress updates.

How to take a WordPress site offline on purpose

If you want to take the site offline for work, you have several options. The right one depends on how long and why:

MethodBest forStatus for search engines
WP-CLI: wp maintenance-mode activateShort jobs, minutes to a few hours503
Maintenance mode pluginHours or days, custom design, admins can still see the site503 or 200, depending on settings
Password protection at the host (HTTP authentication)New sites before launch, test environments401, not indexed
Server-level maintenance pageMigrations, security incidents, when WordPress itself should not run503, fully configurable

With a plugin

Common choices are LightStart (formerly WP Maintenance Mode) and SeedProd. They provide a designable maintenance or coming-soon page, let logged-in admins see the real site and let you choose the status code. Use 503 for maintenance, and block indexing for a site that has not launched yet.

A custom page for the built-in mode

If you create wp-content/maintenance.php, WordPress shows it instead of the default message. Keep it simple: logo, a sentence and a way to reach you. Send the 503 status and a Retry-After header yourself so search engines know the pause is temporary:

<?php
http_response_code( 503 );
header( 'Retry-After: 3600' );
?>
<!doctype html>
<title>Maintenance</title>
<p>We are updating our website and will be back shortly.</p>

A maintenance page served with status 200 looks like a normal page to search engines. Leave it up long enough and your real pages can be replaced by it in the index. Always use 503 for maintenance.

Maintenance mode and SEO

  • Keep it short: A few hours of 503 is harmless. Over several days, Google may begin removing pages.
  • Send Retry-After: The header tells crawlers when to try again.
  • Keep robots.txt reachable: If it also returns 503, Google may pause crawling the whole site.
  • Move long work elsewhere: Instead of locking the live site for days, build changes on a copy and switch over. See WordPress staging.

What belongs on a good maintenance page

A maintenance page is a dead end for visitors. Make it as useful as you can:

  • One clear sentence saying the site is temporarily unavailable and, if possible, until when.
  • A phone number or email address so urgent requests still reach you.
  • Your logo, so visitors know they are in the right place.
  • For stores, a note on whether existing orders are affected.
  • No heavy images, scripts or external fonts. The page should load even when the server is under strain.

Schedule maintenance when traffic is low. Your analytics shows which hours bring the fewest visitors. Announce longer outages to regular customers in advance.

Hiding a new site before launch

For a site that should not be public yet, password protection at the host is the most reliable choice: search engines cannot reach the content at all. The "Discourage search engines from indexing this site" option under Settings → Reading is only a request to crawlers, not access control. At launch, remember to remove both the password and that checkbox. A forgotten checkbox is a common reason a new site never shows up in Google.

Common mistakes

  • Leaving the maintenance page up for weeks because the project slipped.
  • Using a maintenance plugin with status 200 on a site that is already indexed.
  • Enabling maintenance through a plugin and then interrupting an update of that same plugin.
  • Not telling store customers when ordering will be possible again.

How eCloud Systems can help

If your site is stuck after an update, or you are planning larger changes, we can help on request through the contact form. With a new site from our WordPress package, we build behind protection and go public only after your approval.

Frequently asked questions

How do I turn off WordPress maintenance mode?

Delete the .maintenance file in the WordPress root folder via SFTP or your host's file manager, or run wp maintenance-mode deactivate. If a plugin enabled it, switch it off in the plugin's settings.

Does maintenance mode hurt my Google rankings?

Short maintenance with status 503 is fine; Google simply comes back later. If the site returns 503 for many days, Google may start dropping pages. A maintenance page served with status 200 is treated as normal content and can replace your real pages in the index.

Can administrators see the site in maintenance mode?

With maintenance plugins, usually yes: logged-in admins see the normal site. With WordPress's built-in mode during updates, everyone sees the message, logged in or not.

Need a new WordPress website for a fixed price?

Up to 5 pages, mobile-ready, SEO basics, live in about 10 working days: €500 one-time, with a 30-day money-back guarantee. For help with an existing site, get in touch.