TeleQom.org/404.php
2023-03-15 15:53:04 -04:00

7 lines
242 B
PHP

<?php
$language = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
echo($language);
$accept = ['fr', 'en'];
$language = in_array($language, $accept) ? $language : 'fr';
header("location:/pages/{$language}/err/404.html");
?>