DNSZ adlı üyeden alıntı: mesajı görüntüle
Bende yönlendirme yapmıyor, url aynı kalıyor
Bendede aynı şekilde hocam

Bu şekilde ekledim

<?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'); 
} 
}

$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');


bu işlemi forumda çok soran vardı inşallah yapabiliriz hocam.