Load language by default depending on the sitename accessed ex. .es .it .us | orderingonlinesystemhq

Load language by default depending on the sitename accessed ex. .es .it .us

index.php after $langarray is loaded from database (Line 50) added: if (isset($_GET['tld'])){ switch ($_GET['tld']){ case 'orderingonlinesystem.it': $langarray=array(23); break; case 'orderingonlinesystem.fr': $langarray=array(10); break; case 'orderingonlinesystem.ru': $langarray=array(20); break; case 'orderingonlinesystem.de': $langarray=array(2); break; case 'orderingonlinesystem.nl': $langarray=array(7); break; case 'orderingonlinesystem.es': $langarray=array(3); break; default: $langarray=array(1); break; } $defaultlang=$langarray[0]; } -- .htaccess of alternate domains generate a tld=%{HTTP_HOST} paramter which is passed by proxy to the main domain.