$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); if ($lang != 'fr') $index = 'index_en.php'; header("Location: $index",TRUE,301);?>