WordPress.org

Ready to get started?Download WordPress

Forums

Static 404 Page (5 posts)

  1. ryanjwilke
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    Here's a link to the .htaccess file code that was removed for whatever reason:
    http://wordpress.pastebin.com/9wSfdfeP

  3. randulo
    Member
    Posted 3 years ago #

    Have you examined the Apache config file httpd.conf ?

  4. ryanjwilke
    Member
    Posted 3 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
    Member
    Posted 3 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:

    http://wordpress.org/support/topic/getting-htaccess-to-override-wordpress-defaults

Topic Closed

This topic has been closed to new replies.

About this Topic