Mobile app version of vmapp.org
Login or Join
Eichhorn148

: Stephen answered your question spot on, but another observation regarding your example code that you linked to, that you might want to remove these lines in your PHP code: <?php header($_SERVER["SERVER_PROTOCOL"]."

@Eichhorn148

Stephen answered your question spot on, but another observation regarding your example code that you linked to, that you might want to remove these lines in your PHP code:

<?php
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
?>


Your web server already responded with 404 when this document would be used and you're just providing a nicer to read error document. There is no need for this document to add a response header indicating 404 error like you did, when it would already be included in a server's response following a request for non-existent location/document.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Eichhorn148

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme