şöyle bişey yazdım ama bakalım ne yapabileceğiz
<? 
if ($HTTP_ACCEPT_LANGUAGE == tr) {  
header("Location:index_tr.php"); //  
} else {  
header("Location:index_en.php"); //index_en.php dosyasına yönlendiriyor  
}  
?>
yada ip adresini dısarıdan alırsak soyle yazmamıs gerekır
$ziyaretci_ip = getenv(REMOTE_ADDR); // ip alalım 
$ziyaretci_yer = file("http://www.hostip.info/api/get.html?ip=$ziyaretci_ip"); //ip'yi geoip sitesi kullanarak yerini bulalım ve kaynağı aktaralım 
$ziyaretci_yer = join ("", $ziyaretci_yer); 
if (eregi ("Turkey", $ziyaretci_yer)) { header ("Location: http://tr.site.com/"); } else { header ("Location: http://en.site.com"); }