Added redirect feature depends on language.

This commit is contained in:
Oleg Sh
2024-08-13 15:37:19 +02:00
parent cb19bd9d4a
commit 6d0f0f9ab7
3 changed files with 43 additions and 2 deletions

View File

@@ -4,7 +4,13 @@
header('Content-type: text/html; charset=' . $g_config['charset']);
GetQuery(); // Что бы определился язык сайта
$redirectUrl = GetRedirectURL(); // Check redirect
if ($redirectUrl != NULL)
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: $redirectUrl");
exit();
}
// Подключаем все языковые файлы из автозагруки
$dirs = array_unique(
array(