if(preg_match('#item/[0-9]/.*#is',$_SERVER['REQUEST_URI'])){
header("HTTP/1.0 404 Not Found");
include $_SERVER['DOCUMENT_ROOT'].'/404.php';
exit();
}
if (preg_match('#^\/item\/[0-9]+\/.+#i', $_SERVER['REQUEST_URI'])) {
header("HTTP/1.0 404 Not Found");
include $_SERVER['DOCUMENT_ROOT'].'/404.php';
exit();
}