Tr yazan kısma
Örnek bulgarca
$dil = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($dil == 'bg') {
header("Location: https://www.siteismi.com/sayfa");
}
Örnek brazilya
$dil = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($dil == 'br') {
header("Location: https://www.siteismi.com/sayfa");
}
Örnek kanada
$dil = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($dil == 'ca') {
header("Location: https://www.siteismi.com/sayfa");
}
Bu şekilde yönlenmek istediğin ülkeleri yaz.
Buda ülke kodları
https://www.w3bai.com/tr/tags/ref_country_codes.html