Forums

[resolved] Redirect to error.html (or similar) when db connection failed (2 posts)

  1. ILMV
    Member
    Posted 7 months ago #

    As the title suggests, it would be good if WP could redirect to a static HTML page within the themes directory when a db connection error occurs.

    The standard <h2> isn't very user friendly, it also couldn't be any further away from and brand we apply to our themes, and as such would like to handle it elsewhere.

    You wouldn't have rely on the theme dev having to have a db_error.html, if it doesn't exist then fair enough, output the standard <h2>... otherwise let us handle this error ourselves.

    Thanks :-)

  2. ILMV
    Member
    Posted 7 months ago #

    Damn, didn't realise about db-error.php.... my bad.

    Delete this post is desired.

Reply

You must log in to post.

About this Topic