*/ $url = "http://www.lawandinvest.com/html/uk/welcome.php?version=html&lang=uk"; $langs=explode(",",$_SERVER["HTTP_ACCEPT_LANGUAGE"]); switch ($langs[0]) { case "fr": $url = "http://www.lawandinvest.com/html/fr/sommaire.php?version=html&lang=fr"; break; case "es": $url = "http://www.lawandinvest.com/html/es/ola.php?version=html&lang=es"; break; default: break; } header( "location: " . $url ) ; ?>