Little snip-it of code I found
Code:
<?php
$browser = explode(",", $HTTP_ACCEPT_LANGUAGE);
switch($browser[0]) {
case 'de':
Header("Location: de.html");
break;
case 'en':
Header("Location: en.html");
break;
case 'es':
Header("Location: es.html");
break;
default:
print("Error there is no document by that language.");
}
exit();
?>
may be useful for international websites