After having quite a few customers want this - yet only have a very low level of traffic… I have started researching the options. Just about everyone seems to suggest a htaccess rule and above root folder… fair enough, but is the following feasible and acceptable in your EE minds?
root index.php file… multi site section!!!
if ($_SERVER[SERVER_NAME] == 'www.domain1.co.uk')
{
$assign_to_config['site_name'] = 'site1';
}
else if ($_SERVER[SERVER_NAME] == 'www.domain2.co.uk')
{
$assign_to_config['site_name'] = 'site2';
}
else
{
$assign_to_config['site_name'] = 'site3';
}Clearly it need a lot more cleaning up and checking but you see the overall basic logic.
If it is possible and plausible, what else would i need to consider here?
Thanks, N