Site Down? How To Use A 503 Code To Save Your Google Rankings

Nov 8, 2012 • 9:11 am | comments (10) by twitter Google+ | Filed Under Google Search Engine Optimization
 

503Every webmaster has gone through the issue of having to deal with a site that must go offline for one reason or another for an extended period of time. Either you need to move servers, a hurricane hit your servers, your site was hijacked or something else. When there are no alternatives, and your site is offline - how do you save your site's rankings in Google?

The answer is to use a 503 Service Unavailable server response code.

But what if the server is down and you can't add the server response code? The answer is to switch the server by editing the DNS record.

John Mueller from Google posted his advice on this at Google+, he wrote:

Dear webmasters, if something goes drastically wrong with your hoster, and you can't host your website anymore, please return a "503 Service unavailable" HTTP result code. Doing so helps search engines to understand what's up -- they're generally more than happy to give your site some time to catch up again.

Returning an error page with "200 OK" will result in us indexing the change of content like that (and if all of your pages return the same error page, then we may assume that these URLs are duplicates). Redirecting to a temporary page will result in that redirect being used for indexing. It's fine to show text to users on a 503 error page, or use fancy JavaScript, etc.

A simple way to handle that - if the webserver is down - is to change the site's DNS to point to a temporary server that returns the 503 for you.

Once the issue is resolved, we'll generally jump back in and crawl your site to get the indexed information updated. If you weren't able to return a 503, it'll probably take a bit of time for things to settle back down with regards to search, but it'll come back, don't worry. If you need to ramp crawling up slowly, you might also want to adjust the maximal crawl rate in Webmaster Tools (we pick up that setting about once a day).

At any rate, if your site was affected by issues like these, I hope you're able to resolve them (and the other, perhaps more important issues that often go along with disruptions like these) as soon as possible. If there's something Google can do with regards to web-search to help get your site get back on its feet, feel free to post here, in our forums, or join our office-hours hangouts.

This is important advice to be reminded about, because this stuff doesn't come up all that often and when it does, webmasters and SEOs often scramble and are unsure what to do.

Here are some of our other stories on this topic:

Forum discussion at Google+.

Previous story: Google: Previous Query Used On 0.3% Of Searches
 

Comments:

James Holden

11/08/2012 02:25 pm

I wrote about this earlier in the year here http://www.searchrocket.co.uk/2012/03/taking-a-site-down-for-maintenance/ Try to avoid serving a 503 for robots.txt, or Google will take longer to come back to you. The above link contains a useful .htaccess snippet to help achieve this.

Hugo Boarotto

11/08/2012 02:33 pm

Great information for all ranked sites that can be hurt by a site server shutdown .

Josh

11/08/2012 04:51 pm

Nice share. I learned something new today.

Steven Jacobs

11/08/2012 08:12 pm

This hit the nail on the head. I was just needing something like this today.

iVision Mobile

11/08/2012 11:54 pm

Great information. Thanks for sharing such interesting post!

Timotheus

11/09/2012 07:05 am

Thank you Barry - very interesting and useful.

Anil Valvi

11/09/2012 12:24 pm

Very informative

Meenu

11/09/2012 12:31 pm

Thanks for useful information..Actually I am recently concerning the same issue because i have to change my server due to some spam issue that time my site was down and i am concerning about ranking.

High Core

11/09/2012 01:00 pm

This is a joke, you usually dont want to change your dns instantly when your website is down.

MARK PATTERSON

02/15/2013 03:42 pm

ok,up to maybe a few days ago,and I have no virus,ect,good sites that keep me safe,now I am getting these GODDAM GOOGLE ERRORS 404,503,DIDN'T THEY JUST GET FINED MILLIONS OF DOLLARS FOR GIVING AWAY OUR INFORMATION.YOU GUYS SEEM TO THINK THIS IS GREAT,IT'S BULLSHIT,AND THEY CAN STOP IT,why is this junk happening,never had this ever happen,and NOW THEY WANT YOU TO REGISTER,TO PROTECT ""YOU" FROM PEOPLE GETTING YOUR INFORMATION,I THINK THIS IS PART OF THE PROCESS,LIKE GOOGLE CHROME,WHAT THE SHIT IS THAT ABOUT,THEY RUINED YOUTUBE,PUT GODDAM ADS IN EVERY FUCKIN VIDEO,AND YOUTUBE QUALITY IS SHIT NOW,DO YOU ALL LIKE THAT TOO,WITH YOUR ERROR ROBOT ALL THE GODDAM TIME,THEY SHIT ON US

blog comments powered by Disqus