I wanted to know if there is a way to simulate a 404 error in PHP. For example, I have this URL: www.mydomain.com/user/[Username]
which redirects to /profile.php?user=[username]. I want the server to show my 404 Error page if the username is not registered.
[PHP] Here it is some sample code:
<?
if (notRegistered($_GET['user'])) {
// Throw 404 Error
}
?>
Thanks in advance.