WordPress.org

Support

Support » How-To and Troubleshooting » Problem with 404 Pages

Problem with 404 Pages

  • Hey guys!

    I am experiencing an unusual problem on a shared hosting package from FastHosts with my WordPress installation.

    WordPress 404 pages are not being shown, instead the web browser fails to display the page. Google Chrome shows the error Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. FireFox shows a blank white page with no error readout, IE shows an error message.

    I have never had this problem before. In an attempt to track the source of the error I created the following test page which reproduces exactly the same problem. It is to do with the header function call. Removing that call fixes the error (but returns Status: 200 OK which is obviously wrong).

    <?php
    
    if (substr(php_sapi_name(), 0, 3) == 'cgi')
    	header("Status: 404 Not Found");
    else
    	header("HTTP/1.1 404 Not Found");
    
    ?>
    <!DOCTYPE html>
    <html>
    <head>
    	<title>My 404!!</title>
    </head>
    <body>
    	<h1>My 404!!!</h1><!-- PADDING TO REACH MINIMUM RESPONSE SIZE
    
    																					 -->
    </body>
    </html>

    Does anybody know why this is causing a problem for me?

    Best regards,

  • The topic ‘Problem with 404 Pages’ is closed to new replies.
Skip to toolbar