Zen Cart屏蔽中文语言浏览器

在根目录下的index.php前面加上以下这段代码即可;

if(preg_match("/zh-cn/is",$_SERVER['HTTP_ACCEPT_LANGUAGE'])){
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
echo "<script>window.location.href='nddbc.html';</script>";
exit();
}

原文地址:https://www.cnblogs.com/lzj87980239/p/3896501.html