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();
}

posted on 2014-08-07 10:29  断掌  阅读(230)  评论(0编辑  收藏  举报

导航