Quote:
Originally Posted by Darrell
Thanks for all the replies. Based on language is a good idea.
My sites are in English and I only want to pop a warning page for one country and based on the browser language would be fine. Also I don't want to mess up my SE rankings. Is there a really simple way to accomplish this?
|
Code:
<?php
$lang = ($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if(preg_match("zh", $lang)) {
header("location: http://www.domain.com/china.html");
} else {
header("location: http://domain.com/");
}
?>