Static 404 Page (5 posts)

  1. ryanjwilke
    Posted 4 years ago #

    I recently launched a WordPress site for Chez Pim, which is being hosted on Media Temple.

    Everything is operating fairly smoothly except a few bugs that I've discovered in WordPress. One of them has to do with error handling (404 pages). Because she gets so much traffic, we've opted to remove the dynamic 404 handling from WordPress and turn it into a static html page.

    This should be as simple as using the following code:
    ErrorDocument 404 /404.html

    Well that code doesn't work no matter where I put it in the .htaccess file. It continues to use the custom 404.php template page from the WordPress theme.

    Anyone have any thoughts on how to make this code work? I've cruised all kinds of forum posts already; none of them helped.

    Here's a peak at my .htaccess file:
    [File moderated as per the Forum Rules. Please use the pastebin]

  2. ryanjwilke
    Posted 4 years ago #

    Here's a link to the .htaccess file code that was removed for whatever reason:

  3. randulo
    Posted 4 years ago #

    Have you examined the Apache config file httpd.conf ?

  4. ryanjwilke
    Posted 4 years ago #

    I have not. I can examine it on my local dev machine (the same code doesn't work there), but I'm not sure about the Media Temple servers. (We're using the shared hosting setup; so I'm sure I wouldn't be able to change anything so easily).

    Any thoughts into what might be causing it inside of the httpd.conf ?

  5. ryanjwilke
    Posted 4 years ago #

    It looks like I'm going to have to resort to this same ugly redirect technique until I get a better answer. Here's another user who had the exact same issue:


Topic Closed

This topic has been closed to new replies.

About this Topic