基本上,如果您创建一个名为db-error.php
放在下面/wp-content/
, 你会得到什么db-error.php
将会有。这是我的template on CodePen.
这是一个示例:
<?php
header(\'HTTP/1.1 503 Service Temporarily Unavailable\');
header(\'Status: 503 Service Temporarily Unavailable\');
header(\'Retry-After: 3600\'); // 1 hour = 3600 seconds
mail("[email protected]", "Database Error", "There is a problem with teh database!", "From: Example.COM");
?>
<!DOCTYPE HTML>
<html dir="ltr" lang="en-US">
<head>
<title>503 Service Temporarily Unavailable</title>
<style type="text/css">
h1, p {
font-family: Helvetica, sans-serif;
font-size: 24px;
color: #333;
}
p {
font-size: 14px;
}
</style>
</head>
<body>
<h1>Uff, you came and our server started to sink!</h1>
<p>You did nothing wrong. We are sad but our server\'s condition is just bad out of load. Please check back after sometime.</p>
</body>
</html>