Created
May 13, 2016 12:33
-
-
Save MRuy/93bcfe77424dca8423e6bf55bfc7bcae to your computer and use it in GitHub Desktop.
Wordpress db-error.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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