Skip to content

Instantly share code, notes, and snippets.

@MRuy
Created May 13, 2016 12:33
Show Gist options
  • Save MRuy/93bcfe77424dca8423e6bf55bfc7bcae to your computer and use it in GitHub Desktop.
Save MRuy/93bcfe77424dca8423e6bf55bfc7bcae to your computer and use it in GitHub Desktop.
Wordpress db-error.php
<?php
// custom WordPress database error page
// upload to wp-content/db-error.php
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 600');
?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Service Temporarily Unavailable</title>
<style>
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
body {
font-family: Helvetica, sans-serif;
color: #333;
padding: 1em 2em;
text-align: center;
}
</style>
</head>
<body>
<h1>Service Temporarily Unavailable</h1>
<p>Please try it again later.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment