Sooner or later every website needs to go offline for a while. A plugin update breaks the checkout. A host moves your server. A redesign needs a clean switchover. So you put up a page that says "website under maintenance" and hope nobody notices.
Visitors will notice, but they'll forgive you if the page is honest and short-lived. Google is a different audience. It doesn't read your friendly message. It reads one number your server sends back with the page, and that number decides whether your rankings ride out the downtime or start to slip.
This guide is for business owners and in-house marketers, not developers. It covers what "under maintenance" means to Google, the single technical rule that protects your rankings, how long you can safely stay down, how to switch maintenance mode on for WordPress, Shopify and static sites, and what your maintenance page should still say to customers. At the end, we explain how our team at Nurotech plans updates so most clients never need a maintenance page at all.
For a visitor, a maintenance page is a sign on a locked shop door. It says you're closed, you're coming back, and here's how to reach you meanwhile. A good one keeps the customer. A blank error page or a half-broken site loses them.
For Google, a page is mostly a status code. Every time Googlebot (Google's crawler) asks your server for a URL, the server replies with a three-digit HTTP status code before it sends any content. A 200 means "here is the page, all fine". A 404 means "this page doesn't exist". A 503 means "the service is temporarily unavailable, come back later".
That last code is the whole game. If your maintenance page goes out with a 200, Google believes your real page has been replaced by a short "we'll be back soon" message. It may index that message, show it in search results, and judge every URL on your site as thin, near-duplicate content. If it goes out with a 503, Google understands that nothing has changed and that it should simply try again later.
According to Google's own Search Central documentation on HTTP status codes and network errors, 5xx errors cause Google's crawlers to temporarily slow down, and URLs that are already indexed are kept in the index for a while. The same page warns that they are eventually dropped if the errors continue. Short and correct is safe. Long or wrong is where the damage happens.
If you remember one thing from this article, make it this: a maintenance page must return HTTP 503, ideally with a Retry-After header.
The 503 status code is defined in the HTTP standard, RFC 9110, published in June 2022. It says the server is currently unable to handle the request because of a temporary overload or scheduled maintenance, which will likely be fixed after some delay. That's exactly your situation, and it's the code Google expects.
The Retry-After header is the "back at" note on the door. Per the MDN Web Docs reference, it can carry either a number of seconds (for example Retry-After: 3600 for one hour) or an exact date and time. Google treats it as a hint rather than a promise, but it costs nothing to send, and other bots and monitoring tools use it too.
Here are the four mistakes we've seen most often when we take over a site that someone else has been maintaining:
Disallow: / "just for the weekend" is risky. If Google re-reads that file during the window, it stops crawling everything, and the effect can outlast the maintenance.The fix in every case is the same: leave your URLs exactly where they are, and have the server answer each one with a 503 for the duration.
You don't have to take a plugin's word for it. Turn maintenance mode on, then open a terminal and run:
curl -I https://www.yoursite.com/
The first line of the reply shows the status. You want to see HTTP/2 503 (or HTTP/1.1 503) and, a few lines down, a retry-after line. If you see 200, the page is lying to Google. Free web tools that show HTTP headers will give the same answer if you'd rather not use a terminal. Test while logged out, because many plugins show admins the normal site.
There's no published countdown, and anyone who gives you an exact number of hours is guessing. What Google has said in public is consistent, though.
In its 2011 Webmaster Central post on planned site downtime, Google recommended a 503 for short, planned outages. In March 2020, when many businesses were pausing during lockdowns, Google's Search Central blog advised against taking a whole site offline and noted that disabling a site for more than a few days risks pages being removed from the index. Google's current crawling documentation says the same thing in a different form: 5xx errors are tolerated for a while, and persistent ones get URLs dropped.
In our experience, that translates into three practical bands:
| Downtime with a correct 503 | Likely effect on rankings | What to do |
|---|---|---|
| Under 1 hour | None you will be able to measure | Normal update window. Schedule it at night. |
| 1 hour to about 2 days | Usually none, perhaps a short dip in crawl rate | Fine for migrations and big upgrades. Send Retry-After. |
| More than a few days | Real risk that URLs start dropping out | Avoid. Keep a basic version of the site live instead. |
Two points trip people up. First, these windows assume a correct 503. With a 200 holding page, the damage can start the first time Google recrawls, because it's indexing the wrong content rather than waiting. Second, crawl frequency differs by page. Your home page may be fetched several times a day, while a deep product page may be visited once every few weeks. A 6-hour outage can be invisible to Google for most URLs and very visible for the busiest ones.
If a job truly needs a week, don't hide the site behind a maintenance page for that long. Build the new version on a staging copy (a private clone of the site), keep the old version running, and switch over in a window measured in minutes. That's how we handle redesigns, and it's the most reliable way we know to avoid ranking loss.
The right method depends on what your site is built on. Here's what each platform does out of the box, and where it goes wrong.
WordPress already has a built-in maintenance mode, and it's better than most people realise. When you run a core, theme or plugin update, WordPress drops a hidden file called .maintenance into the site's root folder. While that file exists, visitors see the message "Briefly unavailable for scheduled maintenance. Check back in a minute." Behind the scenes, WordPress sends a 503 status and a Retry-After header of 600 seconds, which is 10 minutes. That's the correct behaviour.
The common failure is a stuck file. If an update times out halfway, the .maintenance file can be left behind and the site appears frozen in maintenance. WordPress ignores the file once it's older than 10 minutes, but caching layers can keep serving the old 503 page for longer. The fix is to delete .maintenance from the root folder over FTP or your host's file manager, then clear the cache.
For longer work, people install a maintenance plugin. Before you trust one, check its settings for an option named something like "503 status" or "search engine friendly mode", turn it on, then confirm with the curl test above. Some popular plugins default to a 200 "coming soon" page, which is meant for brand-new sites that aren't indexed yet, not for live ones. The WordPress Advanced Administration handbook is a good reference if you or your developer want to go deeper on safe updates.
Better still, avoid long maintenance mode on WordPress altogether. Test updates on staging first, then apply them to the live site in a few minutes. That's standard on our Plus care plan, which includes a staging environment for exactly this reason.
Shopify runs the servers, so you never take the platform itself offline. The usual reason to "close" a Shopify store is a theme change or a big catalogue update. You don't need maintenance mode for either: you can duplicate your live theme, edit the copy, preview it privately, and publish it when it's ready. The switch is close to instant.
Shopify's storefront password page is designed for stores that haven't launched yet. Switching it on for a live, indexed store hides every page behind one login screen, which is the same problem as a 200 holding page. If you must use it, keep the window short and run the curl test to see what status your store returns while it's on.
Static sites, including the Astro sites we build for many clients, rarely need maintenance mode at all. A new version is built in the background and swapped in all at once by hosts like Cloudflare Pages or Netlify. There's no half-updated state for a visitor to land in.
If you do need to close a static site, for example during a domain move, do it at the edge (the CDN layer in front of your site). On Cloudflare, a small Worker or a custom rule can return a 503 with a Retry-After header for every request. On a server running Nginx, the core of the setup is a single line, return 503;, plus an error_page 503 rule that serves your maintenance HTML and an add_header Retry-After 3600 always; line. Apache can do the same through its config or an .htaccess rewrite with the R=503 flag. Leave an exception for your own IP address so you can still check the real site.
This is also one reason static builds suit small businesses that can't afford outages. We set out the trade-offs in more detail in our comparison of WordPress vs Astro for AI-search-ready sites.
The status code is for Google. The page itself is for people, and a lot of maintenance pages forget that a customer might be standing on the other side with money to spend. Atlassian's Statuspage team and UptimeRobot both publish galleries of maintenance page designs, and they're worth a look for layout ideas. What those galleries don't stress enough is the practical content. For an Indian small business, that means:
Keep it light. A single HTML file of a few kilobytes, with your logo and styles built in, is ideal. The page shouldn't depend on the database or any part of the site you're working on, otherwise it can break at the worst moment. Don't add a countdown timer unless you're confident about the finish time; a timer that hits zero while the site is still down looks worse than no timer.
One more thing many owners miss: pause your ads. If you're running Google Ads or Meta campaigns, every paid click during downtime lands on the maintenance page. Google Ads may also disapprove ads whose landing pages return errors. Pause campaigns before the window and switch them back on after you've checked the live site.
Everything above assumes you chose the downtime. Unplanned outages are different, and the difference matters for rankings.
A planned window lets you pick a quiet hour, send a 503 on purpose, pause ads and warn regular customers. An unplanned outage happens to you: a crashed server, an expired domain, a hacked site or a full disk. In those cases your server may return random 500 errors, time out completely or, worst of all, serve a hacked page with a 200 status.
Google treats short outages of any kind fairly gently, according to the same crawling documentation quoted above. The harm comes from two things: duration, and how long nobody notices. A site that's down from midnight on Saturday until someone checks on Monday morning has been broken for roughly 32 hours before anyone starts fixing it.
That's why uptime monitoring matters more than any maintenance plugin. A monitor checks your home page every few minutes and sends an alert by email, SMS or WhatsApp the moment it fails. When we set up a care plan, monitoring is the first thing we switch on, before backups and before updates, because you can't fix what you don't know is broken.
Watch for one specific trap during an unplanned outage: your hosting company's default error page. Some shared hosts show a "suspended" or "account limit reached" page with a 200 status. If Google crawls during that time, it sees a site that has apparently become one page about hosting. Ask your host what status their error pages return. If it's 200, that's a reason to move.
The ideal maintenance page is the one your visitors never see. Most planned downtime on small business sites isn't needed. It happens because updates are tested on the live site, often months late, with no backup to roll back to.
When we take on a maintenance client, our routine is built to keep the site online:
That's what our website maintenance service is built around. The Basic plan starts at ₹5,000 a month and covers weekly off-site backups, tested updates and uptime monitoring. The Plus plan, from ₹10,000 a month, adds daily backups and a staging environment, which is what removes most maintenance windows. The Pro plan, from ₹18,000 a month, adds real-time monitoring and same-day emergency support for e-commerce and high-traffic sites. All prices are indicative and exclude taxes; you can compare them on our pricing page.
If your site needs so much work that you're planning days of downtime, the honest answer may be a rebuild rather than a repair. We handle those as a parallel project with a short switchover, as described on our website redesign page, so the old site keeps earning until the new one is ready.
Print this or keep it in your notes for the next update window:
curl -I while logged out)Switching maintenance mode off isn't the last step. Spend 10 minutes checking that everything came back the way Google last saw it.
Start with the basics. Load the home page, one service or product page and the contact page in a private browser window, and run the curl test on each. All three should now return 200. If any still returns 503, a cache or CDN is holding on to the maintenance version; purge it. Then open /robots.txt and /sitemap.xml to make sure both load. A missing sitemap after a migration is one of the quieter ways a site loses pages over the following month.
Next, open Google Search Console. The URL Inspection tool lets you fetch a live page as Googlebot and see the status it gets. Run it on your home page. Over the next week, keep an eye on two reports: Pages, under Indexing, where a sudden jump in "Server error (5xx)" or "Excluded" pages is the warning sign, and Crawl stats, under Settings, which shows how many requests failed per day. A spike on the maintenance day that falls back to zero the next day is exactly what a well-handled window looks like.
Finally, compare search clicks. In the Performance report, set the range to the 28 days before and after the window. A small dip on the day itself is normal, because nobody could use the site. A dip that keeps going for 2 weeks or more is not, and usually points to something that changed during the work: a removed page, a new URL structure, a noindex tag left on from staging, or a slower server. That last one is common after host moves, so check your page speed too.
Staging sites cause a related problem. If your developer built the new version on a public staging address without blocking search engines, Google can index the copy and treat your live site as the duplicate. Make sure staging is password-protected, and that the noindex setting used on staging is switched off when the site goes live. We check both on every launch.
Our methodology was simple. We based the technical rules on primary sources: Google Search Central's documentation and blog posts on downtime and status codes, the HTTP standard (RFC 9110) and MDN's header reference. We checked the WordPress behaviour against how core handles its .maintenance file. The downtime bands and the checklist reflect what our team does on client sites. We haven't run a controlled ranking experiment, and Google doesn't publish an exact tolerance, so treat the time bands as practical guidance rather than hard limits.
FAQs
Fill out the form or call us — let’s find where your next growth comes from.
9659 634 634 info@nurotech.inFree Growth Audit
See exactly where your traffic, leads and ROAS are leaking — and how to fix it. A senior Nurotech strategist reviews your website, SEO and ads. Free, no obligation.
No spam. We reply within 1 business day.