Home / Development / Ongoing Site Maintenance & 503 Status Code

Ongoing Site Maintenance & 503 Status Code

It’s very common for a webmaster to take their site down to perform maintenance. Did you know that as website maintenance is being performed, Google search engine rankings could potentially drop since Googlebot cannot reach your site? Use a 503 HTTP result code to make sure that this doesn’t happen to you.

The 503 HTTP result code will tell Google that your site being down is not permanent. If you use the optional Retry-After header, you can also inform Googlebot when it should attempt to re-visit your site. Make sure to not use this code as an ongoing solution because Google might view your site as being down permanently and you risk it being removed entirely from the Google index.

Here is an example 503 HTTP result code:
header(‘HTTP/1.1 503 Service Temporarily Unavailable’);
header(‘Retry-After: Fri, 1 Jun 2012 12:00:00 EST’);

About Dave Matteson

David is a Lead Developer at A2 Hosting. He has been writing code professionally for nearly twenty years, and enjoys writing and reading about programming. David does his coding from his house in the woods with his wife and dogs

Check Also

A physical job board.

How to Build Your Own Job Board Website

Job board websites are a convenient place for employers to post openings, and for job-seekers …