Taking your website offline to patch PHP? Google recommends to issue a 503 status code when the site is unavailable, and host it on a system that doesn’t use PHP.
Google Search Central posted the reminder on LinkedIn October 21, 2026, the same day the PHP development team issued emergency patches for two critical vulnerabilities. Both flaws allow an unauthenticated attacker to execute arbitrary code on the server. Some website operators are taking their sites down to patch, and Google wants that downtime handled the right way..
Why This Reminder Matters Now
The PHP bugs are severe, and the updates fixing them are in PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. The PHP team recommends updating as the only safe solution, and no workaround can completely address the problem. According to Search Engine Journal, some webmasters might have to take their sites offline if they cannot update their PHP versions right away.
This choice will have a negative effect on the search results if the site is unavailable for an extended period, and Google will interpret it as a signal that the page is gone for good.
What Google Said
Google’s post notes that a 503 (Service Unavailable) response helps keep already-indexed URLs in Search while the outage occurs. It also says that everything reverts to normal as soon as the site returns 200 responses again.
The post warns of two other practices that should be avoided. Sites should not keep serving a generic 404 page during an outage, and it should not return a 200 OK status for error pages. Google provided a link to its documentation about how different HTTP status codes affect Google crawlers.
What John Mueller Added
Google’s John Mueller posted a reminder on Bluesky earlier this same day. He recommended that people who take PHP sites offline for unplanned updates use a 503. He said that it is better than time out responses or a 404 or 500 error.
Mueller also gave a practical tip for the 503. He said that it can be served outside of PHP. He said that this could be accomplished by pointing DNS elsewhere or using a CDN.
He linked to a 2011 Google post about planned downtime. It gives instructions for sending a 503 using PHP code. As Search Engine Journal points out, this won’t help if it is PHP itself that is coming down.
A Bluesky user ranked server responses from best to worst: 503, 500, 403, 404, and 200. Mueller said that it was a good model.
Why the 503 Must Come from Outside PHP
This is the crux of the issue. If your site is running on PHP and you turn off PHP, any 503s written in PHP code will not execute. Visitors and crawlers will see a bare server error.
Search Engine Journal recommends serving the 503 from somewhere that’s always up while PHP is down, like a CDN rule or a temporary server that your DNS is pointing to. Or you could serve a static maintenance page via your web server or CDN, which doesn’t require any PHP to run at all.
Why Not a 404 or a 200 Error Page
Each invalid response leads to a distinct algorithmic issue. According to the official Google documentation, any URL with a 4xx response code (except 429) informs users and Google crawlers that this resource does not exist. Hence, a previously indexed page will simply be removed from the search results.
However, an error page with the 200 OK status has a different outcome. According to the post by John Mueller in 2013, an error page with a 200 response code will make this URL appear in the search results.
Finally, a 503 response code circumvents all issues related to erroneous pages since it will inform Google that the server is only temporarily unavailable.
How 503s Affect Crawling
Google’s crawl rate documentation includes 500, 503, and 429 responses as ways to quickly reduce crawler traffic for a short period. If Google’s crawlers get many URLs returning these codes, they slow down across all hostname segments, including those still returning content.
The decrease in crawling speed is not permanent. When the number of errors decreases, Google automatically increases the crawl rate. Google’s status code page also notes that crawling resumes gradually after the server starts returning successful responses.
There is a downside to slowing crawling. Google’s documentation warns that Googlebot will discover fewer new pages and update existing pages less frequently. It also warns that Google Ads campaigns may be canceled or paused.
Using the Retry-After Header
When you have to return a 503 or 429, you can also add a Retry-After HTTP header to tell Google’s crawlers to come back at some point in the future. The value can be a number of seconds after which they should retry or a specific date and time (in UTC).
An example of the former is “Retry-After: 120” — this will tell the crawlers to retry in 2 minutes. This header is optional but can provide crawlers with a helpful hint.
How Long is Too Long
A 503 is a short-term tool. Google’s crawl rate page advises against serving one out for longer than one to two days. And, it warns that a prolonged series of these codes can affect a site’s visibility in Google products.
For Search, the documentation asserts a URL may be dropped from the index if Googlebot encounters these status codes on it for a few days straight. Google’s status code page echoes a similar sentiment in different phrasing. Already indexed URLs, however, are saved but eventually purged.
Short flurries of them, on the other hand, are no issue. Search Engine Journal remembers a comment by Google’s Gary Illyes in 2024. He noted that a 503 lasting 10- to 15-minute sporadically would not be considered an extended downtime, and a site would be okay.
Keep Robots.Txt Reachable
One mistake can produce devastating consequences. Google’s official guide on robot downtime suggests that you should not return a 503 for the robots.txt file because that would make the entire site inaccessible to Google crawlers.
To prevent this issue, your robots.txt file needs to allow normal access while the remainder of your domain is down. Google’s robots.txt guide notes that Google cannot refresh titles, descriptions, metadata, or structured data for pages returning a 503.
What if you Need More than a Day or Two
Some sites can’t patch right away. Old PHP versions are a common problem. PHP 8.1 and older no longer receive regular official updates. PHP released limited source fixes for versions 7.4 through 8.1, and some hosts or support vendors may provide their own。
For a long-running closure, Google’s pause guide recommends a different approach. An indexable homepage served with a 200 as a placeholder is mentioned. The guide suggests disabling an entire site as an extreme measure that should be taken only for a very short period of time, no more than a few days at most.
A Practical Checklist
Use this list if you plan to take a site offline.
- First, set up the 503 outside PHP before you shut anything down. Test it to confirm it returns a real 503.
- Second, confirm that robots.txt still returns normally.
- Third, consider adding a Retry-After header too.
- Fourth, set a clear time limit now. Aim to be back online within a day or two.
- Fifth, after you patch, confirm your site returns normal 200 responses.
The Bigger Lesson
The advice is short. Serve a 503. Serve it from outside PHP. Keep robots.txt open. Do not stay down for long.
Frequently Asked Questions
Q 1: Why did Google remind sites to serve a 503?
PHP released emergency fixes for two critical flaws on October 21, 2026. Some site owners may take sites offline to patch. Google wants them to signal that the outage is temporary.
Q 2: What does a 503 status code mean?
Service Unavailable. It tells crawlers this server can’t currently handle their request. Google’s post says that already indexed URLs will be retained in Search while you’re performing the work.
Q 3: Can I serve the 503 with PHP code?
If PHP is the component that will be turned off, no. A 2011 Google post includes PHP code for 503 but it won’t run while PHP is disabled. Mueller says this should be served outside of PHP, perhaps through a DNS change or a CDN.
Q 4: Why not show a 404 page during downtime?
A 4xx error tells Google the content does not exist. Already indexed URLs may be removed from the index. A 503 keeps them in place.
Q 5: What is wrong with a 200-error page?
Mueller wrote in 2013 that this causes Google to index the error content. Your real pages could be replaced by a maintenance message.
Q 6: How long can I serve a 503?
Google recommends against doing it for longer than one to two days. If Googlebot sees these codes on a URL for multiple days, the URL may be dropped from the index. Short blips are much less risky.
Q 7: Should robots.txt return a 503 too?
No. Google’s guide says a 503 on robots.txt disables crawling. It wants to keep robots.txt accessible and returning normal responses while the rest of the site returns a 503.
Q 8: What is the Retry-After header?
It is an optional HTTP header that tells crawlers when to try again. You can set a number of seconds or a UTC date and time. It works with 503 and 429 responses.




