WordPress.org

Ready to get started?Download WordPress

Forums

Custom 404 HTML page for when WP is down (4 posts)

  1. TabyP
    Member
    Posted 12 months ago #

    I was wondering if it's possible at all having a 404 HTML page for when WP has problems or it's down or it's not available. If so, what do I do so that the HTML 404 page is used ONLY when WP is down and not for every instance?

    Ex. At the moment I am using Thesis 2.0 and it has its own 404 custom page which is useful for a "not found" page. But let's say that there is a problem with the database or else and WP is not accessible at all (I guess I'm talking about errors 500, 301, etc.). How do I redirect to my own HTML page in that instance?

    I am really desperate to find an answer, if there is one.

    Website: http://www.matricellc.com

  2. mrbrant
    Member
    Posted 12 months ago #

    You can use a .htaccess redirect to send all traffic from your website to a specific static page. But it would have no way of knowing that your website was having problems, you would have to manually invoke the redirect.

    http://stackoverflow.com/questions/1975904/htaccess-to-redirect-all-traffic-to-one-page-410-gone

  3. TabyP
    Member
    Posted 12 months ago #

    Yeah we thought about the .htaccess redirect for each error but I was wondering if it's possible at all to have the website redirect to the html page ONLY when WordPress is not available for some reason.

  4. TabyP
    Member
    Posted 12 months ago #

    The 410 gone doesn't work for us. It's used for content which is gone and with no "real" redirect. I just need a static page to display in case of database connection error and others (EXCLUDING THE NOT FOUND 404 ERROR which is handled by Thesis).

Reply

You must log in to post.

About this Topic