Thanks Ray! This works fine on the site I am working on - which contains two languages. But I now realize that those who have languages other than the two I set to detect, get a 404 error message. Is it possible to write the code so that all other languages, automatically go to, for example, English.
Here is the code I have on the index.php page:
$_SESSION["lang"] = "".substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) ."";
// Redirect browser
header("Location: http://localhost:8888/bucketlistNyServer/" . $_SESSION['lang'] . "/index.php");