11/4/2014 - 9:27 AM

[Wordpress] Custom error database connection page

[Wordpress] Custom error database connection page

 * Custom wordpress error database connection page
 * @put this file on your wp-content/ folder.
 * @name file : db-error.php

  header('HTTP/1.1 503 Service Temporarily Unavailable');
  header('Status: 503 Service Temporarily Unavailable');
  header('Retry-After: 600'); // 1 hour = 3600 seconds

   /* Send email notification to admin */
  // mail("", "Database Error", "There is a problem with the database!", "From: Db Error Watching");


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en"><head>
    <title>We got a Problem &mdash; Try later</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="description" content="This is a default index page for a new domain."/>
    <style type="text/css">
        body {font-size:10px; color:#777777; font-family:arial; text-align:center;}
        h1 {font-size:64px; color:#555555; margin: 70px 0 50px 0;}
        p {width:320px; text-align:center; margin-left:auto;margin-right:auto; margin-top: 30px }
        div {width:320px; text-align:center; margin-left:auto;margin-right:auto;}
        a:link {color: #34536A;}
        a:visited {color: #34536A;}
        a:active {color: #34536A;}
        a:hover {color: #34536A;}

    <h1>I'm sorry.. :(</h1>
        <a>We got a problem</a>