I just try to add in the header.php file this code
if(!isset($_SESSION['lang'])){
if(preg_match('/it-IT/', $_SERVER['HTTP_USER_AGENT'])){
header("location:it/");
}else{
header("location:en/");
}
}
It’s work but isn’t a solution that manage in a good version the 301 redirection right?
any suggestions? 🙁