How to put a site into maintenance mode
A holding page tells visitors you are working on it, rather than leaving them staring at a half-finished change or an error mid-update.
Maintenance mode replaces your normal site with a simple holding page while you make changes behind the scenes — updates, redesigns, migrations — so visitors see a clear, deliberate message instead of a half-finished page or a broken error mid-change. It's worth using any time you're making a change risky enough that you wouldn't want a visitor landing in the middle of it.
When it's worth using
- Major updates — a core platform update, a batch of plugin updates, or anything that briefly puts the site in an inconsistent state.
- Migrations — moving to new hosting, a new domain, or restructuring how the site is organised.
- Redesigns — swapping a theme or making structural changes visitors shouldn't see partway through.
- Database work — imports, exports or repairs that could show incomplete or garbled data if a visitor loads a page mid-operation.
On WordPress: a plugin is the simplest route
A maintenance mode plugin gives you a proper holding page — with your own message, and usually your logo — while quietly returning a 503 Service Unavailable status in the background rather than a normal 200 OK. That status code matters more than it might seem:
A 503 tells search engines "temporarily unavailable, come back later" rather than "this page's content has changed to a holding message" — which is what a 200 would imply. Getting this wrong on a maintenance page left up for an extended period can cause search engines to treat the holding page as your site's actual content.
Most maintenance plugins also let logged-in administrators browse the real site normally while everyone else sees the holding page — useful for testing your changes live without switching the mode on and off repeatedly.
Without a plugin: a manual .htaccess redirect
If you'd rather not install a plugin for something temporary, you can redirect every visitor to a static maintenance page using .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123
RewriteRule ^(.*)$ /maintenance.html [R=302,L]
Replace 123.123.123.123 with your own IP address so you can still browse the real site while everyone else is redirected — you can find your current IP by searching "what is my IP" in any browser. The line excluding maintenance.html itself stops the rule redirecting infinitely into its own page.
A 301 tells browsers and search engines "this has moved permanently" and gets cached accordingly, sometimes stubbornly. A 302 means "temporarily", which is what a maintenance redirect actually is and what you want remembered — or rather, not remembered — once the site is back.
Writing the holding page itself
Keep it simple and honest:
- Say plainly that the site is undergoing maintenance.
- Give a rough timeframe if you have one — "back shortly" is fine; a false precise time that passes without the site returning looks worse than no estimate at all.
- Include a way to reach you, such as an email address, for anything urgent.
Before you switch it on
Maintenance mode protects visitors from seeing a change in progress — it does nothing to protect your data if the change itself goes wrong. Take a full backup before starting anything you're putting the site into maintenance mode for. Our guide on backing up a WordPress site covers doing this properly.
Turning it back off
Remove the plugin's maintenance setting, or delete the .htaccess rule if you added one manually, and load the site to confirm it's back to normal before telling anyone the work is finished. It's easy to forget the redirect rule specifically, since the site looks fine to you as the excluded IP address the whole time it's actually still switched on for everyone else.
If something goes wrong while it's on
If you get stuck partway through whatever change prompted the maintenance page, leave it switched on rather than taking the site fully live in a broken state, and contact support with details of what you were doing and where it stalled. A site quietly showing a holding page is a far better position to troubleshoot from than one showing errors to every visitor.
Related reading
Back up, update one thing at a time, and check the site immediately — the order that keeps an update from becoming an outage.
How to back up a WordPress siteFiles and database, together — a backup missing either one is not a backup. Three ways to take one, and how to prove it works.
How to use .htaccess on your hosting accountOne file that controls redirects, rewrites and access rules for a whole folder — and one typo in it that can take the site offline.
How to fix "Error establishing a database connection"A blank page with one line of text, and five possible causes. Here is how to tell which one you have, in the order worth checking.