Taking Your Website Offline: How to Do It Without Hurting Your Google Rankings
Sometimes a site has to go offline for a patch, a move or a rebuild. What Google's documentation says about limiting features instead, using a 503 for a day or two, adding Retry-After, the mistakes to avoid, what John Mueller said during the PHP emergency, and how to check what your site really returns.
zabil
Sometimes a website has to go offline: an urgent security patch, a hosting move, a rebuild that cannot be done live. Google has published guidance on how to do that without damaging how your site appears in Search, and on 21 October 2026, the day PHP’s emergency security fix was released, Google’s John Mueller repeated the core of it. This guide sums up what Google’s documentation says, as of 10 November 2026, in plain language.
First, ask whether you need to switch the site off at all
Google’s page “Temporarily pause or disable a website” is written for online businesses that stop selling for a while. Its recommended approach is to “keep your site online and limit the functionality”, because it “minimizes any negative effects on your site’s presence in Search”.
For a business site that could mean turning off the booking or cart feature, adding a banner on every page that says what is happening, and updating structured data. Google says “If your business has a physical storefront, update Local Business structured data to reflect current opening hours.” It also says “To ask Google to recrawl a limited number of pages (for example, the home page), use Search Console.”
A security patch is different from a closed shop, because sometimes the server really has to go dark. If that is your situation, read on.
If you do have to switch it off
Google calls disabling the whole website “an extreme measure that should only be taken for a very short period of time (a few days at most)”. It gives two options:
- For 1 to 2 days: “return an informational error page with a 503 HTTP response status code instead of all content”.
- For longer: “provide an indexable home page as a placeholder for users to find in Search by using the 200 HTTP status code”.
Why 503, and not a 404 or a blank page
A 503 means the service is unavailable, which tells Google the problem is temporary. Google’s list of things not to do says you should not block a site with 403, 404 or 410 status codes, or with a noindex tag or header. Its reason: “This will remove the website’s URLs from Google Search.”
Google’s crawl-rate page explains what a 503 does. When Google sees a significant number of 500, 503 or 429 responses, it “reduces your site’s crawl rate across the whole hostname” and then “automatically increases the crawl rate again once the number of these errors is reduced”. The trade-off is that “Googlebot will discover fewer new pages, existing pages will be refreshed less frequently” while it lasts.
Keep it short
The same page warns against doing this for longer than 1 to 2 days: “if Googlebot observes these status codes on the same URL for multiple days, the URL may be dropped from Google’s index.” So plan the window in hours rather than days. If the work will take longer, switch to the 200 placeholder page described above.
Google adds that “it’s not possible for Google’s systems to refresh titles, descriptions, metadata, or structured data included on a website if a page returns a 503 HTTP response status code”. Any change you made to titles or descriptions will wait until the pages are back.
Add a Retry-After header
A 503 response can carry a Retry-After header that tells crawlers when to try again, “using either a delay in seconds or an absolute UTC date and time”. Google’s example is a delay of 120 seconds. Google also lists tips for keeping the error page light:
- “Use static HTML”.
- “Minimize off-page resources; use inline CSS stylesheets and base-64-encoded images.”
- Tell visitors what happens next, including “The date when you expect the website to be online again” and how to contact you.
For a local business, a clear WhatsApp number or email on that page keeps enquiries coming while the site is down.
Mistakes Google says to avoid
- Do not return a 503 for your robots.txt file. Google says “Don’t return a 503 HTTP response status code for the robots.txt file because this blocks all crawling.”
- Do not publish a robots.txt that disallows everything. Google says this “may remove the website’s content, and potentially its URLs, from Google Search”.
- Do not use the removal tool in Search Console for closures.
What a long shutdown can cost
Google lists side effects of disabling a whole site: customers cannot learn what is happening, Knowledge Panels may lose information such as phone numbers and the logo, and “Search Console verification will fail”. It also says there is “no fixed time for a recovery from a complete removal”, and no way to speed it up. That is why it asks site owners to limit functionality instead where they can.
What Mueller said during the PHP emergency
Search Engine Roundtable reported on 21 October 2026 that Mueller posted advice on Bluesky for people taking PHP sites down to patch them: “use HTTP 503 instead of letting responses time out / 404 / 500”. He added that you can do this “outside of PHP / point DNS elsewhere / CDN”. He linked to two Google pages, one of them the 2011 blog post on planned downtime, which Google itself flags as possibly outdated and which points readers to its current best practices.
We have not read the Bluesky post directly, so this relies on Search Engine Roundtable’s report. Mueller did not explain the “outside of PHP” part in that post. Our reading is that a 503 served by a CDN or another server does not depend on the PHP you are about to fix. We cover that vulnerability in what PHP2Shell means for a WordPress site.
How to check what your site actually returns
Google’s own example is curl -I -X GET "https://www.example.com/", which should show “HTTP/1.1 503 Service Unavailable”. Replace the address with yours. This matters because the 2011 post says Google has seen many sites “return 200 (OK) result codes for server errors, downtime, bandwidth-overruns or for temporary placeholder pages”. A page that says it is under maintenance but answers with 200 gives Google the wrong signal.
WordPress’s own maintenance mode, used briefly during updates, behaves correctly. In the core file wp-includes/load.php (WordPress 7.1.4) it sends a 503 status with a Retry-After header of 600 seconds, and treats the maintenance flag as expired after 10 minutes, unless a custom wp-content/maintenance.php file replaces that page. A maintenance-page plugin or host feature may behave differently, so check it.
A short plan
- Ask whether you can limit features and stay online instead.
- If you must go offline, set a window in hours and name who ends it.
- Prepare a static page with a return time and a contact route.
- Serve it with a 503 and a Retry-After header, at server, DNS or CDN level if PHP is what you are fixing.
- Leave robots.txt answering normally.
- Test with curl before and during the work.
- Afterwards, check the home page and key pages answer 200, that Search Console still works, and that nothing was left set to noindex. Our guides to Search Console and to why a website might not show on Google help with the checks.
If the work is a redesign or move rather than an emergency, see how to redesign a website without losing your SEO, and for pages that are gone for good see whether 404 errors hurt SEO. If you want a second pair of eyes on a planned migration, you can tell us about your business.
Sources, all read on 10 November 2026: Google Search Central, Temporarily pause or disable a website; Reduce the Google crawl rate; How to deal with planned site downtime (2011, flagged by Google as possibly outdated); Search Engine Roundtable, Google On Taking Sites Down When Fixing The Emergency PHP Exploit (21 October 2026); WordPress core source, wp-includes/load.php.
Layanan terkait
Baca lebih lanjut
Artikel terkait.
SEO
Updating Old Blog Posts for SEO: What Google Says About Publish Dates, Last Updated Lines and Fake Freshness
What Google says about byline dates, visible Last updated lines, dateModified and sitemap lastmod, why changing a date on an unchanged post is a…
SEO
FAQ Rich Results Are Gone From Google: Is FAQ Schema Still Worth Adding to Your WordPress Site?
Google stopped showing FAQ rich results on 7 May 2026. What Google has said since 2023, why Search Console FAQ impressions dropped, whether to…
SEO
Video SEO for a Small Business Website: Watch Pages, Thumbnails and Why Your Embedded Video May Not Be Indexed
What Google's video documentation says in plain terms: why a blog post with an embedded video is not a watch page, how YouTube embeds,…