Türkçeye üsttekini ekleyeceksin.
İngilizceye de bunun tam tersini ekleyeceksin.
<?php
$lg = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
if ($lg == 'en'){
}elseif ($lg == 'tr') {
Header('Location: index.html?_t=Türkçe+%28TR%29');
}
?>
yani bunu.
eğer ftpde en / tr diye 2 klasör yoksa, herşey tek header da ise
<?php
$lg = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
if($_GET['_t'] === 'Türkçe'){
if ($lg == 'tr'){
}elseif ($lg == 'en') {
Header('Location: index.html?_t=Engilish+%28en%29');
}
}elseif($_GET['_t'] === 'Engilish'){
if ($lg == 'en'){
}elseif ($lg == 'tr') {
Header('Location: index.html?_t=Türkçe+%28TR%29');
}
}
?>
Bu sefer hata vermedi hocam footerimdeki site lakin türkçe halen açılmıyor gördüğünüz gibi
ftp de dil dosyaları yok mysqlda dil dosyaları hocam linklerden çekiyor .