• Does anyone know how to set the error communicating with database page(wp-db.php) to automatically re-direct to the index page to try again?

    So if there is a problem with the Database it keeps trying.

Viewing 10 replies - 1 through 10 (of 10 total)
  • it tries every time the page is loaded, what more do you want?

    I mean, I know what you want, but why?

    Thread Starter bluehorse

    (@bluehorse)

    I’ve tried adding

    <head>
    <meta http-equiv=”refresh” content=”0;url=http://www.nameofsite.com/blog/index.php”>
    </head>

    to wp-db.php, but it killed it. The regular page kept refreshing over and over.

    it killed it because its a dumb idea. No offense but it is. In all sincerity, if you have that many issues with your host that you need to do that — you need to worry about finding a new host, not writing something like that.

    Thread Starter bluehorse

    (@bluehorse)

    My database take a bit of a battering. with the number of sites I use it for so it’s a bit hit and miss when my blog tries to connect. so a method of having the site reapetedly try would be great.

    your box? spend some money on ram. problem solved! 🙂

    Thread Starter bluehorse

    (@bluehorse)

    not my box, my hosts. 🙁
    I wish it was mine.

    Thread Starter bluehorse

    (@bluehorse)

    What about a bit of Javascript or is that another dumb idea?

    If you’re getting 404 or 401 or 500, etc. errors, you can redirect them to the index page with .htaccess rules.

    Thread Starter bluehorse

    (@bluehorse)

    I’ve decided I’m going to make a custom database error page with a refresh link. Thanks for all the help. Back to work I go. 🙂

    Check out my error page:
    http://www.comeuphither.com/blog/fred
    Of course “fred” doesn’t exist.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘wp-db.php customize’ is closed to new replies.