DNSZ adlı üyeden alıntı: mesajı görüntüle
<?php
$lg = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
if ($lg == 'tr'){
}elseif ($lg == 'en') {
    Header('Location: index.html?_t=English+%28en%29');
}
?>
Bu kodu header'da ob_start(); 'ın altına koyun.
Tarayıcı dilinizi ingilizce yapın.
Ana siteye girdiğinizde sizi otomatikman ingilizce siteye yönlendiricek.
Hocam dediğinizi yaptım
<?php
ob_start();
$lg = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
if ($lg == 'tr'){
}elseif ($lg == 'tr') {
    Header('Location: index.html?_t=Türkçe+%28TR%29');
}


$url = isset($_GET['_page_url']) ? $_GET['_page_url'] : 'index.html';
$url = str_replace(array('../'), '', $url);

// setup environment
require_once('core/includes/master.inc.php');

// include template
$templateFile = SITE_TEMPLATES_PATH . '/' . $url;
if (file_exists($templateFile))
{
    require_once(SITE_TEMPLATES_PATH . '/' . $url);
    exit;
}

// compatibility with old .php files
if(strpos($url, '.html') !== false)
{
	$filePath = DOC_ROOT.'/'.str_replace('.html', '.php', $url);
	if (file_exists($filePath))
	{
		coreFunctions::redirect(WEB_ROOT.'/'.str_replace('.html', '.php', $url));
	}
}

// assume file related
$filePath = null;
if (strpos($url, '~') !== false)
{
    $endPart = strtolower(substr($url, strlen($url) - 2, 2));
    switch ($endPart)
    {
        // stats page
        case '~s':
            $filePath = 'stats.html';
            break;
        // delete page
        case '~d':
            $filePath = 'delete_file.html';
            break;
        // share page
        case '~i':
            $filePath = 'share_file.html';
            break;
        // view folder page
        case '~f':
            $filePath = 'view_folder.html';
            break;
    }
}

if ($filePath !== null)
{
    if (file_exists(SITE_TEMPLATES_PATH . '/' . $filePath))
    {
        require_once(SITE_TEMPLATES_PATH . '/' . $filePath);
        exit;
    }
}

// try file download
require_once(CORE_PAGE_DIRECTORY_ROOT . '/file_download.php');


Buyrun index.php dosyam bu sitede footerdeki site şuan ekli lakin yönlendirmiyor ?