Şöyle yapsanız hocam;
uyedetay.php dosyasında gelen nicke göre sorgu yaptırıyorsunuz ya hocam orda üye yoksa header komutu ile 404.php sayfasına yönlendirseniz.
Hocam şöyle bir kod yazdım ama çalışmadı inceleyebilir misiniz
define('PATH',$_SERVER['DOCUMENT_ROOT'].'/');
include_once (PATH.'/inc/headergiris.php');
$nick = $_GET["nick"];
if(empty($nick)){
header('Location: http://localhost/uyeadibos');
}
$query=$db->prepare("SELECT * FROM uye WHERE kadi = ?");
$query->execute(array($nick));
$say=$query->rowCount();
if($say < 1){
header('Location: http://localhost/kullanicidbdeyok');
}else{
//Fonkiyon kodlarım
}
Tekrardan inceledim hocam saçma bir şekilde header kodlarım çalışmıyorlar