Forum Moderators: Robert Charlton & goodroi
So what I was thinking to do is to inform G not to index the site while there is no DB connection by outputting some meta tag or what ever if there is no connection.
I googled if and how to do this with no success.
Suggestions will be appreciated!
From the HTTP/1.1 specification [w3.org]:
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.
Jim
Full disclosure: It's impossible to know if all search engine robots will treat all responses properly all the time. All that we as Webmasters can do is to take care of our end on the server, and hope that if a client does not currently handle all responses properly, that over time, it will be upgraded to do so. Most of the major search engines do handle responses correctly, at least in the most general way; For example, they are programmed to come back and retry requests that previously resulted in a 404-Not Found many, many times, sometimes to the annoyance of the Webmaster, in order to avoid dropping pages from their indexes due to temporary errors.
In the case described here, a 503-Service Unavailable is the correct response.
Jim
Now I am curios to see whether the pages will return to the same ranking. My hunch is that they won't, as there is kind of "inertia" factor in G algorithm, meaning that in order to rank better than No5 for example, you have to have better ranking than No5, even if you where that No 5 few days ago...
Hope I was making sense there :)