Can someone tell me how to direct a user to the main 404 file instead of having to print an error message saying "file not found" in single.php?
For example:
<?php
if (!$myVar) {
// go to 404.php and return an official file not found header
} else {
// show the following HTML
}
?>