<?php
if(strstr($HTTP_ACCEPT_LANGUAGE,"en")) {
Header("Location: http://www.site.com/site");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"en-us")) {
Header("Location: http://www.site.com/site");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"de")) {
Header("Location: http://www.site.com/de/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"tr")) {
Header("Location: http://www.site.com/site/turkce/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"it")) {
Header("Location: http://www.site.com/site/Italiano/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"es")) {
Header("Location: http://www.site.com/site/spain/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"fr")) {
Header("Location: http://www.site.com/site/Fran%c3%a7ais/");
}
else {Header("Location: http://www.site.com/site");
}
?>