<?php
$lan = $_SERVER[
if (preg_match("/[zh]{
$url =
header("location: "
} elseif (preg_match("/(?i)^[en]/"
$url =
header("location: "
} elseif (preg_match("/[zh]{
$url =
header("location: "
} else { //其他轉到英文或其他頁面
$url =
header("location: "
}
?>
From:http://tw.wingwit.com/Article/program/PHP/201311/21203.html