if (mysqli_num_rows($articles)<=0)
{
<?
header("Location: ../../../error/404.php");
<?php
}
http_response_code(404);
exit;
header('Location: …', true, 301);
exit;
header('Location: …', true, 307);
exit;
if (!$articles)
http_response_code(404);
include("../../../error/404.php");
}