When your WordPress blog has trouble connecting with the database, it returns a nice “Error Establishing a database connection”.


Instead of losing visitors, db-error.php might be the useful solution.
You should create and place it in the wp-content folder. After that paste this short code in it.

// db-error.php

header("Location: http://google.com/search?q=cache:$host$uri");


the visitor is automatically redirected to the Google cache of the requested page. This avoids losing a visitor.