Sometimes your website needs to go offline for major maintenance, a migration, or an update that shouldn’t happen live. Maintenance mode ensures that visitors see a tidy message instead of a broken page or error message, while you can work calmly in the background. The most important thing is to set this up correctly, so that Google doesn’t remove your site from the index and visitors know when to come back.
What is maintenance mode and when to use it
Maintenance mode is a temporary state in which your website shows a maintenance page instead of the normal content. This is useful for:
- A major WordPress or WooCommerce update that takes some time
- Moving your website to another server
- Testing new functionality without visitors seeing it
- Resolving an outage where the site isn’t working properly
The goal is simple: clearly let visitors know you’re working on something, without them encountering a blank page or an ugly error message.
The correct HTTP status code: why 503 is crucial
Many people forget this, but it’s perhaps the most important part: your maintenance page must return the HTTP status code 503 Service Unavailable, not a regular 200. Without this code, Google thinks the maintenance page is your new, permanent content, and your site may temporarily disappear from search results.
With a 503 code, Google understands: “this site is temporarily unavailable, come back later”. Your rankings then remain intact, even if the maintenance takes a bit longer. Ideally, also add a Retry-After header, so search engines know when they can try again.
Setting up maintenance mode: step-by-step plan
There are several ways to set up maintenance mode, depending on your situation. Below is the most commonly used method via a .htaccess file, which works regardless of which CMS you use.
Create a maintenance page
Prepare a simple HTML file, for example maintenance.html, with a short explanation and optionally an expected duration.
Edit the .htaccess file
Add rules that redirect all traffic to your maintenance page, except your own IP address so you can keep testing yourself. You can find the .htaccess file via the file manager in Plesk, in your website’s root folder.
Force the 503 status code
Make sure the redirect rule sends a 503 header instead of a standard 302 redirect, so that search engines interpret the page correctly.
Test the page thoroughly
Open your site in an incognito window (without your own excluded IP) and check whether the maintenance page appears and the status code is correct.
Remove maintenance mode afterwards
Remove the rules from your .htaccess file once the maintenance is finished and check whether the site loads normally again.
Using WordPress? Then you can also use a lightweight plugin specifically made for maintenance mode, but always check whether it sets a 503 code. You can find more about managing your website in our knowledge base.
Preventing common mistakes
A number of pitfalls we often see:
- Forgetting to check the status code, causing your maintenance page to be indexed as the new homepage
- Not excluding your own IP, making it impossible for you to test or log in yourself
- No time indication on the page, causing visitors to leave
- Forgetting to turn off maintenance mode after the work is finished
- Email not checked: maintenance mode for your website doesn’t affect your email, but check this anyway if you’re also making DNS changes via business email
Working on a larger migration where your entire website and domain are moving? Then also check out the steps for switching to Tandata, so you minimize downtime.
Frequently Asked Questions
How long can maintenance mode remain active?
As short as possible. Google accepts a temporary 503 status, but if this continues for days, it can still impact your rankings. So plan maintenance purposefully and bring the site back online as soon as possible.
Does maintenance mode also work for WooCommerce stores?
Yes, the principle is the same. Make sure ongoing orders aren’t lost and preferably schedule maintenance outside of busy sales periods.
Can I still view the site myself during maintenance mode?
Yes, if you exclude your own IP address in the .htaccess rules, you’ll see the normal website while other visitors get the maintenance page.
Does maintenance mode affect my hosting or domain?
No, it’s purely a website-level setting. Your web hosting and domain name remain active and reachable as usual.
Conclusion
Setting up maintenance mode is simple if you use the correct status code and show a clear maintenance page. This way you prevent SEO damage and keep visitors well informed during updates or migrations.