if($_SERVER["HTTP_ACCEPT_LANGUAGE"]="sv") { echo "Svenska, visa hemsida"; }else{ header("Location: http://site.se/utländsksida"); }