Key takeaways
- Use a plugin for planned work, a .maintenance file when wp-admin is out of reach, and your host's dashboard toggle for migrations.
- A correct maintenance page answers with a 503 status, which tells search engines the downtime is temporary. A Retry-After header can say when to come back.
- A plugin can show a branded page while answering with a 200 status underneath. Check the status before you rely on it.
- A hand-made .maintenance file that uses the current time keeps the site down until you delete it.
- Across many client sites, a bulk management tool runs the update rounds, and monitoring catches what breaks afterwards.
To put a WordPress site in maintenance mode, use a plugin for planned work, drop a .maintenance file in the site root for a no-plugin fix, or switch it on from your host's dashboard for migrations. The right method depends on the job. Whichever you pick, the page should answer with a 503 status so search engines treat the downtime as temporary. This guide covers each method, plus what changes when you look after dozens of client sites.
What is WordPress maintenance mode and when should you use it?
Maintenance mode replaces your site with a short notice page while you work. Done correctly, the page answers with a 503 Service Unavailable status, which Google's guidance on planned downtime recommends over a 404 or an error page that answers 200. A 503 tells search engines the downtime is temporary.
Use it for work long enough that visitors would otherwise see a broken page: large plugin or core updates on a live site, migrations, redesigns and emergency repairs. Skip it for a quick change that finishes in seconds.
When a quick update does not need maintenance mode
A single plugin update or a change tested on a staging copy often finishes before anyone notices. Switching maintenance mode on for a 30-second change can create more client questions than it prevents. Keep it for work long enough to show visitors a broken page.
When downtime is planned versus accidental
Planned downtime gets a scheduled window and a notice page. Accidental downtime, like a plugin conflict at 2am, needs monitoring and a fix first. Here is how to find out a client site is down before the client does.
Which maintenance mode method fits your situation?
Four situations cover most cases. Match yours to a method:
- Plugin or core update round: WordPress's built-in mode or a plugin. The window is short and quick to switch off.
- Redesign or rebuild: a plugin with a custom page. Visitors may see it for days, not minutes, so it should look like the site.
- Migration to a new host: your host's dashboard toggle. It works even when WordPress itself cannot be reached.
- Emergency (a hack or a broken update): a .maintenance file. It needs no dashboard access.
The plugin route is the most convenient but needs a working admin. The .maintenance file works when wp-admin is down. Host-level maintenance covers migrations where the whole domain must answer with a 503.
How do you enable maintenance mode with a plugin?
Install a maintenance plugin, activate it, and the site shows a holding page to visitors while you work. Most let you edit the page's text and logo without touching code, and many let you choose the status code. Pick 503 where the plugin offers the choice. For one-off client work this is the fastest route.
Whitelisting your own IP and logged-in users
Before you activate anything, check the plugin's exclusion settings. You want logged-in administrators to skip the holding page, so you and your team can test the live site while visitors see the notice. Allowing your office IP address does the same for tools that reach the site without a login. If the plugin offers only one of the two, prefer the logged-in bypass, and test it in a second browser where you are signed out.
Scheduling maintenance windows for client sites
Some plugins let you schedule a window in advance, so the page appears at 2am during your update round and switches off on its own. Whatever method you use, tell the client about the window beforehand and confirm the site is back before their morning. Our free check shows, for up to 5 sites at once, whether each one answers, how fast, its SSL certificate and domain dates, and its WordPress version.
How do you add maintenance mode without a plugin using the .maintenance file?
Create a file named .maintenance in the site root (the folder that holds wp-config.php) containing <?php $upgrading = time();. WordPress checks for that file on every request and shows its default maintenance screen, answering with a 503 status. Delete the file to bring the site back. It needs no plugin, which makes it handy when you cannot reach wp-admin.
Creating a custom maintenance.php for a branded page
The default screen is a plain page with one line of text. To brand it, create wp-content/maintenance.php: while maintenance mode is on, WordPress loads your file instead of its default screen. Released versions of WordPress load it without sending the 503 status first, so start the file with <?php http_response_code(503); header('Retry-After: 600'); ?>. Use the page for the client's logo, a contact line and an expected finish time. Test it on a staging copy first, and check the status with curl.
Common mistakes that leave the site stuck in maintenance mode
A file that uses time(), as above, keeps the site down until you delete it, even days later. The file WordPress writes during its own updates holds a fixed time instead, and WordPress stops treating the site as in maintenance 10 minutes after that time. Wrong file permissions after an upload can stop you deleting the file, and a PHP syntax error inside .maintenance or maintenance.php shows an error page instead of your notice.
Delete the file as soon as the work is done, and load the site's front end before you close the ticket. If a client reports downtime hours later, check for a forgotten .maintenance file before you blame the hosting or a plugin conflict. A site with uptime monitoring raises an alert within minutes; an unmonitored site can sit broken overnight.
How do you turn on maintenance mode from your hosting dashboard?
Many managed WordPress hosts include a maintenance or "coming soon" switch in their dashboard. Where it works at the server level, before WordPress loads, it still works when a plugin conflict locks you out of wp-admin. That makes it the right tool when you are migrating a site, restoring a backup or changing DNS. Check your host's own documentation for what its switch does.
Maintenance mode versus a staging copy: which to use
A staging copy is usually the better answer for update rounds and risky changes: clone the site, test, then push the change. Host-level maintenance mode is for the short window when the live site itself must be unreachable, such as a migration cutover or a database restore. For routine plugin updates you rarely need to take the live site down at all. If you are comparing tools for a portfolio of sites, see how AccessDossier compares with ManageWP.
How do you customize the maintenance mode page visitors see?
A bare "briefly unavailable" screen tells visitors nothing. Use the page to do three things: match the site's branding, say when the site will be back, and give a way to reach someone if the downtime is urgent for them.
Most maintenance plugins let you edit the page text, upload a logo and add your own styling, so the screen looks like the client's site rather than a plugin default.
Keep the words short: what is happening, the expected return time, and a contact link. For agency work, consider putting the agency's contact on the page, so questions during the window come to you first.
How does maintenance mode affect SEO and the 503 status code?
The status code decides how search engines read your downtime. A maintenance page that answers 200 tells crawlers the page is fine, just different. A 503 tells them the outage is temporary, and an optional Retry-After header says when to try again, which Googlebot may use to decide when to recrawl.
Checking what status code your maintenance page actually returns
Test it before you rely on it. Run curl -I https://yoursite.com from a terminal, or use a browser extension that shows response headers. You should see a 503 Service Unavailable status, and ideally a Retry-After value. A plugin page that looks right can still answer 200 underneath.
What Google Search Central says about site downtime
Google's guidance is to answer planned downtime with a 503 and not to treat it as a permanent fix. Google warns that 503 answers that last can eventually be read as a sign the server is gone for good, and the pages can then be removed from its index. So keep the window short, and remove maintenance mode as soon as the work is done.
How do you take a WordPress site out of maintenance mode safely?
Removal depends on the method. Delete the .maintenance file from the site root, or deactivate the plugin if you used one. If your host switched it on, switch the site back to live from the same dashboard.
Post-maintenance checklist: cache, uptime check, functional test
Clear every cache layer: page cache, object cache and any CDN. Then load the site in a private window to confirm the 503 has given way to a normal 200.
Test the pages you touched: forms, checkout and logins. Check the site from outside your own network, not only your browser, so a cached copy does not fool you. Across many client sites, run this checklist for each one and note the result, so the next update round starts from a known state.
How do you handle maintenance mode across dozens of client sites at once?
Running update rounds with maintenance windows
Past a handful of client sites, switching maintenance mode on site by site stops scaling. Bulk management tools such as ManageWP, MainWP and WP Umbrella run plugin and theme updates across many sites from one dashboard. A pattern that works: test updates on staging, run the round off-peak, show the notice page on the affected sites, then check each site and close the window. Keep the window short and written down, so a client who notices sees a plan, not an outage.
Monitoring after the window closes
Maintenance mode only covers the work you scheduled. Some breakage shows up hours later, after the window has closed. Uptime monitoring that alerts you first, not the client, closes that gap. AccessDossier Care checks each client site every minute and sends the alert to your agency, with SSL and domain warnings before they expire.
FAQ
How long can a WordPress site stay in maintenance mode before it hurts rankings?
Google gives no fixed number. A short 503 window for planned work is what its guidance asks for, while a 503 that lasts can lead to pages being removed from the index. Problems also start when the maintenance page answers 200 instead. Finish the work, remove maintenance mode, and check that the site answers 200 before you close the window.
Why is my WordPress site stuck in maintenance mode after an update?
Usually a .maintenance file is still in the site root. WordPress stops honouring the file its own updater writes after 10 minutes, but a hand-made file that uses time() keeps the site down until it is deleted. Check for the file first, including the leading dot, before blaming the hosting or a plugin conflict. On an unmonitored site this can sit broken overnight.
Can I put my WordPress site in maintenance mode without logging in?
Yes. Upload a .maintenance file to the site root over SFTP; no wp-admin access is needed. That makes it the fastest option when a hack or a broken update has locked you out of the dashboard. While the file is there, wp-admin shows the maintenance screen too, so do the repair over SFTP or your host's tools and delete the file when you are done. Many managed hosts also offer a maintenance switch in their own dashboard.
Do visitors see a 503 error or a normal page during WordPress maintenance mode?
They see a normal-looking notice page, while the server underneath should answer with a 503 Service Unavailable status. The page can carry a logo and contact details. The catch: a plugin page can look right and still answer 200 underneath. Test the actual headers before relying on any tool.
Is maintenance mode the same as staging?
No. Staging is a private copy of your site where you test changes safely, then push them live, while the live site stays up. Maintenance mode takes the live site itself offline for visitors. Staging suits update rounds and risky changes; maintenance mode suits the short window when the live site must be unreachable, like a migration cutover or a database restore.
Originally published on accessdossier.com. We make AccessDossier Care, and we write with AI help.

