Hello, I am trying to use php to output custom 404 pages but the problem is that my IE browser does not show the content of the 404 page. It only shows not found in the title with the built-in 404 error page of IE (not my custom 404 page). Here's my code: <?php // NO output before the following line Header("HTTP/1.1 404 Not Found"); ?> CUSTOM HTML PAGE GOES HERE PHP: - When I visit an invalid page with FF I get 404 error and I see my custom 404 page. - When I visit an invalid page with IE I get 404 error and I DON'T see my custom 404 page. - When I visit other invalid pages with IE on other websites that have their own custom 404 pages I do see their custom 404 pages in IE. So the problem is not with my server since the custom 404 pages are shown in FF. Nor the problem is with IE since it shows other sites' custom 404 pages just fine. What could be the problem? This is driving me crazy!!! P.S. It is not a cache problem, the browser shows the last updated version of my site pages.
IE only shows custum error pages if over a cirtain file size... 512bytes, else will show its own one. Try adding so text to the page such as link to home page, site map to bring the page size servered by the server up a bit.... or if you just need filler text, add a bunch of nonsense text in comments in the output code the server sends as the page.