WordPress Maintenance Mode: How to Use It Without Hurting SEO (2026)
When to use maintenance mode, three ways to switch it on in WordPress, the SEO rules that matter and how to fix "Briefly unavailable for scheduled maintenance".

Sometimes a website needs a short break: a redesign goes live, a big update is due, a shop migrates to a new payment system. Maintenance mode shows visitors a friendly “we’ll be right back” page while you work, instead of a half-finished site or an error.
Done right, it is invisible to Google and harmless for your rankings. Done wrong, it can push pages out of search results or lock you out of your own site. This guide shows when to use maintenance mode, three ways to switch it on in WordPress, the SEO rules that matter and how to fix the famous “Briefly unavailable for scheduled maintenance” message.
Key takeaways
- WordPress switches on a built-in maintenance mode for a few seconds during every update. If an update fails, the site can get stuck in it, and deleting the .maintenance file fixes that.
- For your own work, use a plugin or a small code snippet that shows a maintenance page to visitors while you stay logged in.
- A maintenance page must return the HTTP status code 503 (Service Unavailable), ideally with a Retry-After header. A page with status 200 can be indexed as your actual content.
- Keep maintenance short. Google recommends 503 for an urgent pause of a day or two, and an indexable placeholder page for longer closures.
- Never return 503 for robots.txt, and never block the whole site with noindex or a 404 during maintenance.
When you need maintenance mode, and when you do not
| Situation | Maintenance mode? | Better alternative |
|---|---|---|
| Routine plugin and core updates | No | Updates with a backup first and a check afterwards, the built-in mode covers the few seconds |
| Redesign or theme switch | Yes, for the switch itself | Build and test on a staging copy, then switch with a short maintenance window |
| Migration to a new host | Usually not | Test on the new server first, switch DNS without downtime |
| Shop: change to payment, checkout or stock system | Yes, short | Test on staging, then switch at a quiet time |
| Site not launched yet | No, use a coming soon page | A coming soon page, see below |
| Site hacked and harming visitors | Yes | Maintenance mode while you clean up |
The best maintenance window is the one you do not need. Most changes can be prepared and tested on a staging copy, so the live site is only paused for the final switch.
WordPress’s built-in maintenance mode
Every time WordPress updates core, plugins or themes, it creates a file called .maintenance in the root folder. While it exists, visitors see the message “Briefly unavailable for scheduled maintenance. Check back in a minute.” When the update finishes, WordPress deletes the file again. Normally this takes a few seconds and nobody notices.
Stuck in maintenance mode? Here is the fix
If an update is interrupted, for example by a timeout or a closed browser tab, the file may stay behind and the site stays “briefly unavailable” for good. The fix, as described in the official guide on updating WordPress:
- Make sure no update is still running. Wait a few minutes.
- Open the file manager in your hosting panel or connect via SFTP.
- In the WordPress root folder (where wp-config.php is), delete the file
.maintenance. It is a hidden file, so enable “show hidden files” if you cannot see it. - Reload your site, then go to Dashboard → Updates and check which update did not finish. Run it again, ideally after a backup.
If the site shows an error after deleting the file, the interrupted update left a plugin or core half-installed. Our guide on the WordPress critical error shows how to find and fix it.
Three ways to switch on maintenance mode yourself
| Method | Good for | Watch out for |
|---|---|---|
| Maintenance plugin | Most site owners, with a designed page and settings | Check that it sends status 503 and lets you stay logged in |
| Code snippet | Developers, short maintenance windows | Test it first, keep the login reachable |
| Server or host level | Migrations, server work, sites where WordPress itself is down | Configuration differs per host |
Option 1: A maintenance plugin
Popular maintenance and coming soon plugins let you design a page with your logo, a message and contact details, switch maintenance mode on and off with one click and decide who still sees the real site, usually logged-in administrators. Before you rely on one, check two settings: it must send the 503 status code in maintenance mode, and it must not block the login page.
Option 2: A small code snippet
If you only need a short maintenance window, a few lines in a code snippets plugin or your child theme’s functions.php are enough. Logged-in administrators see the normal site, everyone else sees a short message with the correct status code:
add_action( 'template_redirect', function () {
if ( current_user_can( 'manage_options' ) ) {
return;
}
header( 'Retry-After: 3600' );
wp_die(
'<h1>We will be back soon</h1><p>We are working on the site and will be back within the hour.</p>',
'Maintenance',
array( 'response' => 503 )
);
} );
The login page is not affected, so you can always log in. Remove or comment out the snippet when you are done, and check the site in a private window afterwards.
Option 3: On the server
For migrations or server work, maintenance mode can also be set at server or host level, for example with a rule in .htaccess or a maintenance switch in the hosting panel. This works even when WordPress itself is not running. Ask your host which option they offer.
Maintenance mode and SEO
Search engines keep crawling while your site is in maintenance. What they see decides whether your rankings survive. Google’s guide on how to temporarily pause or disable a website gives clear rules:
- Use status 503 for an urgent pause of a day or two. It tells Google the outage is temporary, so indexed pages are kept.
- Add a Retry-After header with the expected duration, and keep the maintenance page light: static HTML, few external resources.
- Never return 503 for robots.txt, because that blocks all crawling.
- Do not block the site with 403, 404 or 410 status codes, a noindex tag or the removal tool in Search Console.
- For longer closures, provide an indexable placeholder page with status 200 that explains the situation.
A maintenance page that returns status 200 is the most common mistake: for search engines it looks like your whole site has been replaced by a single short page.
Maintenance mode or coming soon page?
Both show a placeholder, but they mean different things. Maintenance mode is for an existing site that is temporarily unavailable, with status 503. A coming soon page is for a new site that has not launched yet. It can return status 200, so your domain and a short description can already appear in search results and collect sign-ups.
Checklist for a maintenance window
- Make a full backup first.
- Announce longer maintenance in advance, for example in a banner or newsletter.
- Choose a quiet time, based on your analytics.
- Make sure the page returns 503 and a Retry-After header.
- Show a clear message, the expected duration and a way to reach you.
- For shops: pause orders, or test the checkout immediately after switching back.
- Switch maintenance mode off and check the site in a private window.
- Check Search Console in the following days for new errors.
Updates without maintenance stress.WP Beekeeper makes a full backup before every update, installs updates in the right order, compares your pages before and after and alerts you if something looks different. Try it free for 14 days.
Start free trial →Sources and further reading
- Temporarily pause or disable a website, Google Search Central
- Updating WordPress, WordPress.org documentation
Frequently asked questions
How do I put my WordPress site into maintenance mode?
Use a maintenance plugin, which lets you design a page and switch it on with one click, or a small code snippet that shows a message with status 503 to everyone who is not logged in. For server work, your host may offer a maintenance switch.
How do I get WordPress out of maintenance mode?
If the site shows “Briefly unavailable for scheduled maintenance” after an update, delete the .maintenance file in the WordPress root folder via the file manager or SFTP, then check which update did not finish.
Does maintenance mode hurt my SEO?
Not if it is short and returns status 503, ideally with a Retry-After header. Google then keeps your pages indexed. A maintenance page with status 200, or a long closure, can harm your rankings.
How long can a WordPress site stay in maintenance mode?
As short as possible. Google recommends 503 for an urgent pause of a day or two. For longer closures, use an indexable placeholder page with status 200.
What is the difference between maintenance mode and a coming soon page?
Maintenance mode is for an existing site that is temporarily unavailable and returns 503. A coming soon page is for a site that has not launched yet and can return 200.
Can I still log in during maintenance mode?
Yes, with a good plugin or the snippet in this guide. The login page stays reachable and logged-in administrators see the normal site.
Conclusion
Maintenance mode is a useful tool for short, planned breaks, as long as it sends the right signal: status 503 with a Retry-After header, a clear message and a quick return. Prepare changes on staging so the window stays short, and if your site gets stuck after an update, deleting the .maintenance file brings it back.


