$dil= $_SERVER["HTTP_ACCEPT_LANGUAGE"]; if ( $dil== "tr") { header("Location:index_tr.php"); } else { header("Location:index_en.php"); }