Site Going Offline For 10 Hours? Google Recommends Returning a 503 Service Unavailable Response

Oct 30, 2007 • 7:30 am | comments (4) by twitter Google+ | Filed Under Google Search Engine Optimization
 

Ever have to take down your site for an extended period of time? By extended period of time, I am talking about more than 5 hours or so.

Those who have, might also worry about how Google or other search engine spiders may treat the long down time.

A Google Groups thread has a response from Google's Berghausen, a Google Webmaster Central representative. Berghausen recommends that you serve up "a '503 Service Unavailable' with a 'Retry-After' header indicating when you expect your site to be back up." That is, if you can serve up that server message while your site is down.

A 503 status is defined as:

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.

Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.

Berghausen says that "Googlebot will not index your error page, and will come back looking for updates some time after the date specified in the 'Return-After' header." Very good to know that Google supports this specific header.

Forum discussion at Google Groups.

Previous story: Many Gmail Users Still Without IMAP
 

Comments:

Patrick Altoft

10/30/2007 12:35 pm

I posted about this with example php and htaccess code to return a 503 and create custom error pages last week. http://www.blogstorm.co.uk/blog/handle-googlebot-during-site-downtime/

Ryan

10/30/2007 01:55 pm

This may be a dumb question, but how important is it to put up the 503 error message? I'm really interested to know in case I do have to take my site down at some point - I don't want to hurt my rankings. Thanks! Ryan K.

Barry Schwartz

10/30/2007 02:05 pm

Honestly, I don't know Ryan.

CVOS man

10/31/2007 08:03 am

you don't want errors appearing in your Google snippit

blog comments powered by Disqus