Viewing 7 replies - 1 through 7 (of 7 total)
  • Yeah, I’ve seen this with IE before. How exactly are you manifesting your 404? Do you actually have a 404.php file or are you using an else statement to display an error message in whatever template file is used to display a given post?

    What I would do is don’t bother with the else statement, just place the following at the very top of your theme’s 404.php file (if you don’t have one create it)

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

    IE doesn’t read anything after the second chunk that your server is transmitting. I don’t know if it will help, but you should put the scripts inside the HEAD element instead of before it.

    Also, the two tabs you have before the doctype declaration should be removed to eliminate that as a possible cause.

    Thread Starter Beee

    (@beee)

    included in the loop is an else statement for a 404 notice.

    so no physical 404 but included in each template with an else statement

    Thread Starter Beee

    (@beee)

    will test it… and post the results

    there are no tabs. Doc declaration is at position 1 in column 1

    Thread Starter Beee

    (@beee)

    i added the given code in the header, before doc declaration (right after head gave an error)

    didn’t change anything though… any other suggestions ????

    I have the same problem but adding the header codes specified by Lenk worked for me. (:

    Thanks guys.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘404 not working in IE’ is closed to new replies.