• 04-12-2016, 21:58:06
    #1
    mrb arkadaşlar
    siteme tr dışından gelen lokasyonları ayrı bir sayfaya yönlendirmek istiyorum
    ingiliz alman fıransız tr dışı ne varsa hepsi oraya gidecek.
    bunla ilgili doğru düzgün çalışan bir kod bulamadım.
    bilgisi olan varsa yardımcı olabilirse memnun olurum.
    teşekkürker.
  • 04-12-2016, 22:07:39
    #2
    $a = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR']));
    $countrycode= $a['geoplugin_countryCode'];
    if ($countrycode!='TR') {
        
        header( 'Location: http://example1.com' ) ;
    	exit();
    }
    İşinizi görecektir. example1.com a tr harici ziyaretçileri yollar. Buna googlebot vs de dahildir.
  • 04-12-2016, 22:17:34
    #3
    F.Gungor adlı üyeden alıntı: mesajı görüntüle
    $a = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR']));
    $countrycode= $a['geoplugin_countryCode'];
    if ($countrycode!='TR') {
        
        header( 'Location: http://example1.com' ) ;
    	exit();
    }
    İşinizi görecektir. example1.com a tr harici ziyaretçileri yollar. Buna googlebot vs de dahildir.
    çok teşekkür ederim hocam 10 numara oldu