Data center aisle lined with server cabinets and a rolling monitor cart, illustrating safe PHP patch downtime for Michigan business websites

On October 21, 2026, Google’s John Mueller told site owners rushing to patch the PHP2Shell vulnerability to serve an HTTP 503 status if they take their sites offline, not to let pages time out or return 404 or 500 errors. The advice landed the same day the PHP project shipped emergency releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and it decides whether precautionary downtime costs you hours of traffic or weeks of rankings.

What is PHP2Shell and why are sites going offline?

PHP2Shell is the nickname for two critical PHP flaws that allow unauthenticated remote code execution, meaning an attacker can run code on your server without logging in. According to Search Engine Roundtable’s October 21 report, every PHP version from 5.4 through 8.5.11 is affected, and the fixed builds are 8.2.35, 8.3.36, 8.4.27 and 8.5.12.

Fortune and CNBC reported that PHP underpins an estimated 70% of websites. Reuters, as cited by Search Engine Roundtable, reported that government, school and hospital sites in Europe were taken offline on Wednesday, October 21, as a precaution while patches were applied.

What did Google say about taking a site down to patch PHP?

Use HTTP 503, and serve it from somewhere other than PHP. Mueller wrote on Bluesky that sites going down for these “unplanned updates” should return 503 rather than timing out, returning 404 or returning 500, and that this can be done “outside of PHP,” by pointing DNS elsewhere, or at the CDN.

That matches Google’s Search Central page on pausing a website: a 503 for urgent closures of one to two days, and for anything longer, an indexable placeholder home page returning 200.

How does a 503 protect rankings when a 404 or timeout doesn’t?

A 503 tells Googlebot “come back later,” so it keeps the indexed version of the page and retries. A 404, 410, 403 or noindex tells it the page is gone, and URLs start dropping from the index.

When Googlebot hits a 503, it slows its crawl and schedules a retry, and the page stays indexed with its existing title, snippet and structured data. Google’s documentation notes it cannot refresh any of that metadata during a 503, so nothing improves, but nothing is lost. The protection is time-limited: left up for days, the error starts to look permanent and URLs fall out. A timeout gives Googlebot no signal at all, and a 500 says “broken,” not “paused.”

One rule is easy to miss: robots.txt must not return a 503. Google’s documentation warns that a server error on robots.txt blocks all crawling. So a blanket “503 everything” rule at the server or CDN needs an exception for /robots.txt, which should keep returning a normal 200 with your usual rules.

That predicts cases this article doesn’t list. A six-hour window behind a clean 503 should be invisible a week later. A 503 forgotten over a long weekend starts costing pages. A “We’ll be back” page returning 200 on every URL fails differently: Google sees your product and service pages replaced by one thin message.

Does a WordPress maintenance mode plugin count as a safe 503?

For SEO, usually yes. For this particular vulnerability, it misses the point. WordPress core’s own maintenance screen, triggered by a .maintenance file during updates, sends a 503 with a Retry-After header of 600 seconds, and most reputable maintenance plugins send a 503 too.

The catch is that every one of those screens is generated by PHP. If the reason you’re taking the site down is that the PHP runtime itself is exploitable, a maintenance page rendered by that same runtime still hands every request to the vulnerable code. That’s why Mueller’s “outside of PHP” phrasing matters. Our reading, not Google’s statement: the SEO-safe and security-safe answers converge only when the 503 comes from the web server, load balancer or CDN.

Why does this hit Michigan businesses harder than it sounds?

Because a lot of the region’s commercial web runs on aging, self-managed PHP sites built years ago and rarely touched since. Picture a Tier 2 machining supplier in Sterling Heights whose capabilities pages are what procurement teams find months before an RFQ, sitting on a VPS set up in 2019 and still running PHP 7.4.

The fixed builds only exist for the 8.2 through 8.5 branches. A site on PHP 7.4, 8.0 or 8.1 doesn’t get a patch; it needs a version upgrade, which can break old plugins and themes and turn a two-hour job into a three-day one. That’s how a “quick” 503 becomes a week-long outage that erodes the B2B research queries these suppliers live on.

The timing matters for service businesses too. Late October is when furnace calls ramp up for HVAC companies in Livonia, Westland and Grand Rapids. A multi-location contractor whose location pages drop for ten days in early November loses calls for good, because a homeowner with no heat calls whoever shows up first.

How should a small team take a PHP site offline without losing rankings?

Patch live if your host can; if you must go dark, do it at the edge, keep it short, and verify every status code. In order:

  1. Check your PHP version first. In WordPress, Tools → Site Health → Info → Server shows it. If you’re on 8.2–8.5, ask your host whether they’ve already rolled the patched build; many have, and you may need no downtime at all.
  2. If you need downtime, serve the 503 outside PHP. Use a web server rule, a CDN custom-error rule, or a DNS switch to a static page.
  3. Exempt robots.txt. Make sure /robots.txt still returns 200 with your normal rules. Never swap in a “Disallow: /” file during the outage; Google’s documentation says that can remove content from Search.
  4. Add a Retry-After header and a useful static page. Inline CSS, an expected return time, and a phone number.
  5. Verify with curl. Run curl -I https://yoursite.com/ on the home page, a deep service URL and /robots.txt. Expect 503, 503, 200. A CDN that rewrites your 503 as a 200 silently defeats the plan.
  6. Pause paid traffic. Ads pointing at an unreachable site risk “Destination not working” disapprovals and waste clicks. Pause Search and Performance Max for the window.
  7. Set a hard 48-hour limit. If the upgrade runs longer, replace the 503 with a 200 static home page explaining the situation, per Google’s guidance.
  8. Bring it back cleanly. Remove the rule, re-check status codes, resubmit your sitemap, and run URL Inspection on your top pages.

Will a short outage show up as a ranking drop?

A correctly served 503 of a day or less usually shouldn’t cause a lasting drop, but don’t read this week’s ranking data on its own. Search Engine Roundtable reported heavy, unconfirmed Google ranking volatility on October 20 and 21, the same days sites were going offline to patch.

Separate them by checking the Crawl Stats report in Search Console (Settings → Crawl stats). A server-error spike in your patch window with impressions dipping and rebounding on the same dates was your outage. Impressions falling on pages that never errored point to the wider volatility. We covered that split in our guide to reading a rank tracker drop before trusting it, and in our breakdown of how Google’s crawl and indexing timelines separate a slow page from a stuck one.

Is “just take it down to be safe” actually the safe choice?

Not by default. Shutdowns make sense for a hospital portal or anything holding sensitive data. For a lead-gen site on a host that has already patched, going dark trades a handled risk for a guaranteed loss of calls.

Google’s documentation calls disabling a whole site “an extreme measure,” warning that Search Console verification fails, Knowledge Panels can lose your phone number, and recovery from a full removal has no fixed timeline. Ask your host one question: is my server still running vulnerable PHP? If the answer is no, stay online.

What dates matter over the next few weeks?

  • October 21, 2026: PHP releases 8.2.35, 8.3.36, 8.4.27 and 8.5.12; Mueller posts the 503 guidance.
  • October 20–21, 2026: unconfirmed Google ranking volatility reported.
  • November 26–30, 2026: Thanksgiving through Cyber Monday. Any version upgrade that breaks plugins needs to be fixed well before then, not during it.
  • December 31, 2026: PHP 8.2 reaches end of security support. Plan the move to 8.3 or newer this quarter.

Frequently asked questions

How long can a site return a 503 before Google rankings suffer?

Google’s documentation recommends a 503 only for urgent closures of one to two days and describes disabling a site as something to do for “a few days at most.” Beyond that, URLs can start dropping from the index. If your fix will take longer, serve a 200 placeholder home page with clear status and contact details instead.

Should robots.txt return a 503 during maintenance?

No. Google’s documentation says a 503 on robots.txt blocks all crawling of the site. Keep robots.txt returning a normal 200 with your usual rules, and don’t replace it with a file that disallows everything, since that can remove your content from Search. Only the page URLs should return the temporary 503 while you work.

Is a WordPress maintenance plugin enough during the PHP2Shell patch?

For Google, a plugin that sends a proper 503 is fine. For security, it isn’t enough, because the plugin’s page is still generated by the PHP runtime you’re trying to protect. Serve the 503 from your web server, CDN or a static host instead, which is what Google’s John Mueller suggested with “outside of PHP.”

What if my site runs PHP 7.4 or 8.1?

The patched releases cover only the 8.2, 8.3, 8.4 and 8.5 branches, so older versions need an upgrade, not a patch. Test on a staging copy first, because old plugins and themes often break. Keep any edge-served 503 under two days, then switch to a 200 placeholder if the work runs longer.

Category
Tags

Comments are closed