WordPress.org

Ready to get started?Download WordPress

Forums

404 Page Not Working in Internet Explorer (11 posts)

  1. dwzemens
    Member
    Posted 6 years ago #

    I have a custom WordPress 404 page for my theme. It works great in Firefox and Opera, but when using Internet Explorer my 404 page is not displayed, but rather a generic windows 404 error page.

    Here is a bad link to test:
    http://www.1955design.com/badpage/

    Has anyone had experience with this problem or know how to solve it? Thanks.

  2. dwzemens
    Member
    Posted 6 years ago #

    I resolved this problem by placing the following code in my .htaccess file:

    ErrorDocument 404 /wp/wp-content/themes/1955/404.php

  3. dwzemens
    Member
    Posted 6 years ago #

    My mistake, the problem is not resolved. One one or two occassions the 404 was invoked by IE, but it consistently fails to trigger. Werid behavior.

  4. macmeister
    Member
    Posted 6 years ago #

    Same problem here. Did you find a solution to this? I hit refresh a few times, and the custom 404 eventually shows up. STRANGE! I imagine a header or .htaccess tweak could cure this, but not certain what.

  5. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    I don't think you will have very much luck tagging on to three (yes, I would consider that multiple posting) posts that are months old.

    It is also (except for the mindreaders here, who are usually very busy) impossible to even consider support without a URL. At the very least, list one in your profile.

  6. macmeister
    Member
    Posted 6 years ago #

    Placing these 2 items above the get_header at the very top of my 404 file appears to have fixed it for me:

    <?php ob_start(); ?>
    <?php header("HTTP/1.1 404 Not Found"); ?>

  7. greenmoon55
    Member
    Posted 6 years ago #

    Thank you very much.
    I only added <?php ob_start(); ?> and it worked well.

  8. greenmoon55
    Member
    Posted 6 years ago #

    But I don't know what it means. I don't know much PHP.

  9. Trisha Cupra
    Member
    Posted 6 years ago #

    This fixed it for me, too. Thanks!

  10. dwzemens
    Member
    Posted 6 years ago #

    Thanks!

    This was my original post, and your solution works for me, but does anyone know WHY this works?

  11. pauljohns
    Member
    Posted 5 years ago #

    I was having the same issue, works now, though, like everyone else, I don't know why.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.