As stated in the title, my 404 template in WordPress does not show up every time a non-existent URL is accessed in my site. The page works perfectly in FireFox and Chrome, though. So I made a quick search and found that the solution is to add another header information in the page. So here’s what to insert at the very start of 404.php.

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

For this, credit goes to wpcanada.

This is also touched in at

Note: ob_start() is a PHP function Turn on output buffering… whatever that means. 😀

One Thought on “WordPress 404 Page Not Working in IE

  1. This is the ONLY site I have found that was actually useful on this topic. Thank you, it worked perfectly!

Post Navigation