Web DevelopmentSEO

Website Maintenance Mode: Keep Your SEO Safe

Website maintenance mode is a temporary state where your site shows a notice instead of its normal pages, and the safest version for SEO answers every page request with an HTTP 503 status and a Retry-After header, for one to two days at most. That is what Google documents for short outages. The wrong setup, such as a 200 “back soon” page, a 404 or a robots.txt that blocks everything, can cost you visibility that takes weeks to win back.

This is part 5 of The Web After PHP2Shell, and it exists because of a real decision many site owners faced this week. After the October 2026 PHP flaws, agencies in several countries advised taking systems offline if a fix could not be installed quickly. Part 1 explains the flaws and Part 4, static vs dynamic website, explains how to reduce the chance of needing this. Here is how to go offline without wrecking your search presence.

On this page

Should you take your site offline to patch?

Only if you cannot patch or contain the risk quickly, and Google’s own advice is that staying online in reduced form is better than going dark. In its guidance on pausing an online business, Google recommends keeping the site up with limited functionality, for example disabling a cart and showing a banner, because that “doesn’t change anything” for visibility in Search. Full disablement is described as a last resort.

For PHP2Shell the security advice was split in a way that matters. NBC News reported that US, European and British authorities recommended websites go offline temporarily until fixed, while CISA recommended patching. The UK’s National Cyber Security Centre said to consider taking systems offline if immediate remediation is not possible, and Cybersecurity Dive lists the Finnish government and the Dutch House of Representatives among those that disconnected sites.

A sensible order of operations for a small site:

  1. Ask your host first. If the fixed PHP build is installed and workers were restarted, you do not need downtime.
  2. Apply the partial mitigations from the PHP announcement if you cannot update yet, and add a firewall rule. They reduce exposure but are not a complete fix.
  3. Turn off the risky features, such as uploads, while keeping the rest of the site up.
  4. Go offline for a short, defined window only if the above is not possible, and plan the exit before you start.
Three ways to reduce a site's availability, in order of preference Option 1, stay online with reduced features: visitors can use the site with the cart or forms off, status stays 200, and Google visibility is unchanged. Option 2, a short outage of one to two days: visitors see a notice page, the status is 503 with Retry-After, robots.txt stays 200, and Google pauses refreshing titles and metadata. Option 3, a longer outage: visitors see the home page with a notice, the status is 200 and indexable, the window is days not weeks, and Google keeps a page to show in Search. Three ways to go quiet, best first What Google documents for each option 1 Stay online, reduced Visitors: site works, cart or forms switched off Status: normal 200 Google: visibility in Search unchanged Use this first 2 Short outage: 503 Visitors: a notice page Status: 503 + Retry-After robots.txt: keep 200 Google: pauses refresh of titles and metadata Window: 1 to 2 days 3 Longer: placeholder Visitors: home page with a notice, the rest offline Status: 200, indexable Google: keeps a page to show in Search Window: days, not weeks Never use 403, 404, 410 or noindex for planned downtime. Google says they can remove URLs from Search.

Scroll the diagram sideways to see all of it.

Source: Ambeltek diagram based on Google Search Central, "Pause or disable a website".

What status code should maintenance mode return?

Return 503 Service Unavailable. It tells crawlers the outage is temporary, which is the one message you want to send. Every other common choice sends a worse one.

What your site returnsWhat crawlers concludeVerdict
503 with Retry-After, on a notice pageTemporary problem, try laterUse this for 1 to 2 days
200 with a “back soon” pageThe page now says “back soon”Only as an indexable home page placeholder for longer outages
404 or 410The page is goneAvoid; Google says these can remove URLs from Search
403Access deniedAvoid; same warning
noindex on the noticeRemove from the indexAvoid
Disallow all in robots.txtDo not crawl anythingAvoid; can drop content and URLs
503 on robots.txt itselfSite-wide crawling blockedAvoid; keep robots.txt available

The table follows Google’s guidance on pausing a business. Two details are easy to miss. A 503 prevents Google from refreshing titles, descriptions, metadata and structured data, so do not stage SEO changes during an outage. And the Retry-After header should carry a best-effort duration or date, because a vague answer helps no one.

What each URL should return during website maintenance mode During maintenance, requests for pages such as the home page, blog posts and product pages return a 503 status with a Retry-After header and a notice page. The robots.txt file keeps returning 200 with its normal rules. The notice page itself is served with the 503 status, not a 200. What each URL returns while you are in maintenance Treat robots.txt differently from everything else / /blog/ /products/ 503 + Retry-After Notice page /robots.txt 200 as normal Same rules as ever Why the split A 503 on robots.txt tells Google crawling is blocked site-wide. A 503 on the pages says "temporary".

Scroll the diagram sideways to see all of it.

Source: Ambeltek diagram based on Google Search Central, "Pause or disable a website".

How long can a site stay offline?

Google gives no safe number, so plan in hours and a day or two, not weeks. Its guidance puts a 503 outage at one to two days, says full disablement should last “a few days at most”, and warns that closing a site completely, even for a few weeks, can have negative consequences. For server errors in general, its HTTP status code documentation says 5xx and 429 responses make Googlebot slow down, and that URLs which keep returning server errors are eventually dropped, with no timeframe given.

The robots.txt file has the most specific documented timings. Google’s robots.txt specification describes what happens when a robots.txt file exists but cannot be fetched: for the first 12 hours Google stops crawling the site but keeps retrying, for the next 30 days it uses the last good copy, and after 30 days of continuing errors it either treats the site as having no robots.txt or, if the site is generally unavailable, stops crawling while still asking for the file periodically.

What Google documents as an outage gets longer Five stages. Under 12 hours: if robots.txt cannot be fetched, Google pauses crawling and keeps retrying. One to two days: the window Google gives for a 503 notice page. A few days: the most Google advises for full disablement. A few weeks: closing a site completely can have negative consequences. After 30 days: Google stops relying on its cached robots.txt, and persistent errors change how it crawls. The longer the outage, the less Google will wait Stages are not to scale. Google gives no exact drop-out date. Under 12 hours 1 to 2 days A few days A few weeks After 30 days If robots.txt fails, Google stops crawling and keeps retrying. The window Google gives for a 503 page with Retry-After. The most Google advises for full disablement. Closing a site can have negative consequences. Cached robots.txt expires. Persistent errors alter crawl. Rule of thumb Plan to be back within a day. Treat a third day offline as an incident, not a maintenance window.

Scroll the diagram sideways to see all of it.

Source: Google Search Central pages on pausing a website, HTTP status codes and the robots.txt specification, as fetched on 23 October 2026. The rule of thumb is Ambeltek's.

How do you set up maintenance mode correctly?

Return the 503 from the web server, not from inside the application, so it works even when the application is the thing being patched. A minimal nginx pattern, to adapt and test, looks like this:

location = /robots.txt { try_files $uri =404; }
location / { return 503; }
error_page 503 @maintenance;
location @maintenance {
    root /var/www/maintenance;
    rewrite ^ /index.html break;
    add_header Retry-After 3600 always;
}

The first line keeps robots.txt answering normally. The second sends everything else to a 503. The named location serves a static notice page and adds the Retry-After header, here one hour, which you should change to your real estimate. Do not trust the label on a maintenance plugin or hosting toggle. Check the actual response from a terminal:

curl -I https://example.com/
curl -I https://example.com/robots.txt

The first should show 503 and a Retry-After header, and the second 200. Also load the notice page in a browser on a phone, and make it say what is happening, when you expect to be back and how to reach you. A page that returns 503 but tells a customer nothing still costs trust.

If your site is on a managed platform, ask the host how it implements maintenance mode and whether it returns 503. If you serve pre-built pages from a CDN, as in the static setups covered in Part 4, you may not need maintenance mode at all, because the pages can keep serving while you patch the parts behind them.

What about AI crawlers during downtime?

There is no published guidance to follow, so keep outages short and avoid changes that are slow to reverse. OpenAI’s crawler documentation explains how to control OAI-SearchBot, GPTBot and ChatGPT-User through robots.txt, and says search-related robots.txt changes can take about 24 hours to take effect. It does not describe how its bots treat 503 responses, retries or downtime. We did not find equivalent guidance elsewhere for this series, and we are not going to guess.

Two practical inferences, flagged as inferences:

  • A page that returns 503 cannot be retrieved, so it cannot be quoted in an answer until it comes back. That is a cost of downtime, not a bug.
  • Do not disallow AI crawlers in robots.txt as part of the outage. If those changes take about a day to reverse, a one-day outage could turn into a two-day absence. Our guides on robots.txt for AI crawlers and GPTBot vs OAI-SearchBot explain which agent controls what.

What should you check when you come back?

Confirm that every important URL returns 200 again, that robots.txt is unchanged and that nothing stayed in a half-maintenance state. Then watch recovery for a week.

CheckHowWhy
Key URLs return 200A crawler, or curl -I on a samplePlugins sometimes leave a 503 or a redirect behind
robots.txt is intactFetch it and compare to your last good copyA broken file can block crawling site-wide
No new soft 404sSearch Console, Pages report; see soft 404 errorsA 200 notice page can be read as an error page
Crawl rate recoveringSearch Console crawl stats, per the Search Console guideGoogle raises the rate gradually after errors stop
No stray 404sReview the 404 errors guidePages removed during the patch need redirects
Maintenance banner goneLoad the site in a clean browserVisitors and crawlers should see normal pages

Google says that after errors stop, it gradually increases the crawl rate, with no timeframe given. For larger sites, that recovery interacts with crawl budget. The technical SEO checklist for AI search is a good full review once you are stable.

Getting website maintenance mode right when you patch

The goal is to need maintenance mode rarely and to use it well when you do. Patch fast, use mitigations and a firewall to avoid downtime where you can, and when you must go offline, return a 503 with Retry-After, leave robots.txt alone and plan to be back in a day. Write the procedure down before you need it, because the next urgent patch will not wait for you to look up a header.

Ambeltek’s web development service includes setting up a hosting and deployment arrangement where routine updates do not require downtime. Our website maintenance tasks checklist covers the recurring work. The final part of the series steps back to the future of web development.

Frequently asked questions

What is website maintenance mode?

It is a temporary state in which a site shows a notice instead of its normal pages while you update, patch or repair it. For SEO the notice page should be served with an HTTP 503 status and a Retry-After header, so crawlers treat the outage as temporary.

Does putting a website in maintenance mode hurt SEO?

A short, correctly configured outage does little harm. Google advises keeping a site down for a few days at most and warns that closing a site completely, even for a few weeks, can have negative consequences. Returning the wrong status code makes it worse.

What status code should maintenance mode return?

503 Service Unavailable, with a Retry-After header. Google says to use it for short outages of one to two days. Do not use 403, 404, 410 or a noindex tag, because those can remove your URLs from Search, and do not return 503 for robots.txt.

How long can a website be down before Google drops it?

Google gives no exact number. It says URLs that keep returning server errors are eventually dropped, advises full disablement for a few days at most, and describes robots.txt failures in stages: crawling pauses for 12 hours, a cached copy is used for up to 30 days, then rules change.

Should I block crawlers while the site is in maintenance mode?

No. Blocking all crawling with robots.txt can remove your content and URLs from Search. Keep robots.txt available and unchanged, and let the 503 status tell crawlers to come back later. Changes to robots.txt rules can also take time to reverse, up to about 24 hours for OpenAI's search crawler.

Do AI crawlers handle maintenance mode the same way as Google?

Not documented. OpenAI's crawler documentation covers robots.txt controls but does not describe how its bots treat 503 responses or downtime. Assume a failed fetch means the page cannot be retrieved or cited while it is down, and keep outages short.

OK

Olga Kunger

Founder & Lead Strategist, Ambeltek

Olga leads Ambeltek's web development, AI SEO, and GEO work — helping brands rank on Google and get cited by AI engines. More about Olga →

Need a site built to rank and get cited?

Fast, structured websites. Launch tier from $5k, live in about two weeks.