if(preg_match("/$/", $_SERVER['REQUEST_URI'])){ echo 'footer kodları buraya'; }else{ echo 'diğer kodlar buraya'; }