{"id":653091,"date":"2026-10-21T20:58:09","date_gmt":"2026-10-21T20:58:09","guid":{"rendered":"https:\/\/www.newsbeep.com\/il\/653091\/"},"modified":"2026-10-21T20:58:09","modified_gmt":"2026-10-21T20:58:09","slug":"google-reminds-sites-to-serve-a-503-during-php-patch-downtime","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/il\/653091\/","title":{"rendered":"Google Reminds Sites To Serve A 503 During PHP Patch Downtime"},"content":{"rendered":"<p>Google Search Central is reminding anyone who takes servers offline for PHP patches to return a 503 status code, which tells Google the outage is temporary.<\/p>\n<p>The <a href=\"https:\/\/www.linkedin.com\/posts\/how-http-status-codes-affect-googles-crawlers-share-7518727870165385216-gmHF\" target=\"_blank\" rel=\"noopener nofollow\">LinkedIn post<\/a> went up Wednesday, the day PHP released <a href=\"https:\/\/www.searchenginejournal.com\/critical-php-core-security-flaws-affect-websites-including-wordpress\/593812\/\" rel=\"nofollow noopener\" target=\"_blank\">emergency fixes for two critical\u00a0<\/a><a href=\"https:\/\/www.searchenginejournal.com\/critical-php-core-security-flaws-affect-websites-including-wordpress\/593812\/\" target=\"_blank\" rel=\"nofollow noopener\">flaws\u00a0<\/a>that\u00a0can let attackers run code without logging in.<\/p>\n<p>The post doesn\u2019t say how long a 503 can stay up. Google\u2019s <a href=\"https:\/\/developers.google.com\/crawling\/docs\/crawlers-fetchers\/reduce-crawl-rate\" target=\"_blank\" rel=\"noopener nofollow\">crawl rate documentation<\/a> recommends against serving one for more than one to two days, because URLs that return it for multiple days may be dropped from the index.<\/p>\n<p>What Google And Mueller Said<\/p>\n<p>Google Search Central wrote:<\/p>\n<p>\u201cServing a 503 (Service Unavailable) HTTP status code ensures already indexed URLs are preserved in Search while you work. Once you start serving 200 responses again, things naturally return to normal.\u201d<\/p>\n<p>The post also warned against generic 404s or 200 error pages during the downtime. It linked to Google\u2019s page on <a href=\"https:\/\/developers.google.com\/crawling\/docs\/troubleshooting\/http-status-codes\" target=\"_blank\" rel=\"noopener nofollow\">how HTTP status codes affect its crawlers<\/a>.<\/p>\n<p>In a <a href=\"https:\/\/johnmu.com\/503s\/\" target=\"_blank\" rel=\"noopener nofollow\">2013 post<\/a>, Google\u2019s John Mueller wrote that returning an error page with a 200 OK status code causes Google to index that error content.<\/p>\n<p>Mueller posted his own reminder on <a href=\"https:\/\/bsky.app\/profile\/johnmu.com\/post\/3myfhjovzvk27\" target=\"_blank\" rel=\"noopener nofollow\">Bluesky<\/a> earlier Wednesday and said where the 503 can come from:<\/p>\n<p>\u201cIf you\u2019re taking PHP sites down to schedule time to deal with \u201cunplanned updates\u201d, use HTTP 503 instead of letting responses time out \/ 404 \/ 500. You can do this outside of PHP \/ point DNS elsewhere \/ CDN.\u201d<\/p>\n<p>The <a href=\"https:\/\/developers.google.com\/search\/blog\/2011\/01\/how-to-deal-with-planned-site-downtime\" target=\"_blank\" rel=\"noopener nofollow\">2011 Google post<\/a> he linked shows how to send a 503 with PHP code, which won\u2019t help when PHP is what\u2019s coming down.<\/p>\n<p>In a reply, a Bluesky user ranked the responses roughly, from best to worst, as 503, 500, 403, 404 and 200. Mueller called it \u201ca good model.\u201d<\/p>\n<p>How 503s Affect Crawling<\/p>\n<p>Google\u2019s crawl rate documentation lists 500, 503, and 429 responses as the way to urgently reduce crawler traffic for a short period. When Google\u2019s crawlers hit a large number of URLs returning those status codes, they reduce the crawl rate across the entire hostname, including URLs that still return content. Once the number of errors drops, Google automatically increases the crawl rate again.<\/p>\n<p>When returning a 503 or 429, you can add a Retry-After HTTP header that tells Google\u2019s crawlers when to try again, either as a number of seconds or as a date and time in UTC.<\/p>\n<p>Google\u2019s crawl rate page also warns that slower crawling means Googlebot discovers fewer new pages and refreshes existing ones less often. Google Ads campaigns may be canceled or paused.<\/p>\n<p>When I <a href=\"https:\/\/www.searchenginejournal.com\/google-on-the-seo-impact-of-503-status-codes\/514255\/\" rel=\"nofollow noopener\" target=\"_blank\">covered comments from Google\u2019s Gary Illyes in 2024<\/a>, he said a 503 lasting 10-15 minutes every now and then \u201cis not \u2018extended\u2019 by any means, so you should be fine.\u201d<\/p>\n<p>How Long Google Recommends Serving A 503<\/p>\n<p>Google\u2019s crawl rate page warns:<\/p>\n<p>\u201cWe don\u2019t recommend that you do this for a long period of time (meaning, longer than 1-2 days) as it may have a negative effect on how your site appears in Google products. For example, in the case of Search, if Googlebot observes these status codes on the same URL for multiple days, the URL may be dropped from Google\u2019s index.\u201d<\/p>\n<p>Google\u2019s status codes page, the one the LinkedIn post linked to, says already indexed URLs that return server errors are \u201cpreserved in the index, but eventually dropped.\u201d<\/p>\n<p>Google\u2019s <a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/pause-online-business\" target=\"_blank\" rel=\"noopener nofollow\">guide to pausing a website<\/a> calls disabling a whole site an extreme measure that should only last a very short time, a few days at most.<\/p>\n<p>The guide also says not to return a 503 for the robots.txt file, because that blocks all crawling. It adds that Google\u2019s systems can\u2019t refresh titles, descriptions, metadata, or structured data on a page that returns a 503.<\/p>\n<p>Why This Matters<\/p>\n<p>The 503 has to come from something that keeps running while PHP is offline, such as a CDN rule or a temporary server you\u2019ve pointed DNS at. Your robots.txt file should keep responding normally so Google can still crawl the site. The 503 is a short-term measure, since Google\u2019s documentation recommends against serving one for longer than one to two days.<\/p>\n<p>Looking Ahead<\/p>\n<p>Sites on PHP 8.1 or older no longer get regular official updates. PHP has published limited source fixes for versions 7.4 through 8.1 for teams that build PHP themselves, and hosts or support vendors may supply their own, as Vahan Petrosyan reported for SEJ. For a closure that runs past a day or two, Google\u2019s pause guide points to an indexable home page served with a 200 as a placeholder. Once the site returns 200s again, Google\u2019s status codes page says crawling picks back up gradually.<\/p>\n<p>Featured Image: Tetiana Yurchenko\/Shutterstock<\/p>\n","protected":false},"excerpt":{"rendered":"Google Search Central is reminding anyone who takes servers offline for PHP patches to return a 503 status&hellip;\n","protected":false},"author":2,"featured_media":653092,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[85,46,125],"class_list":["post-653091","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-il","tag-israel","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/653091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/comments?post=653091"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/653091\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media\/653092"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media?parent=653091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/categories?post=653091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/tags?post=653091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}