I’m considering purchasing MSM, but I have a concern about installation.
MSM installation calls for a separate “starting” directory for each site. Lets say you have, under your server root, a directory called mysite1 for http://mysite1.com, mysite2 for http://mysite2.com, and mysite3 for http://mysite3.com. Bear with me….
Lets say my hosting provider will not fully by support multiple domains (ie hostmysite.com) by providing routing for separate directories for each domain, but does allow you to point multiple domains to the same server.
This is done by setting the DNS ‘A’ record for each of the domains to the same IP address. Now we have, say mysite1.com, mysite2.com, and mysite3.com hitting the same directory, and thus the same index.php at the server root. Under the server root are the ee system directory, template directory, etc, as well as the site directories: mysite1, mysite2, and mysite3.
The http header contains a value for which domain is hitting the root index.php. Wouldn’t it be possible code this root index.php this way (pseudocode):
If domain is mysite1.com, then include mysite1/index.php,
else if domain is mysite2.com, then include mysite2/index.php,
else if domain is mysite3.com then include mysite3/index.php
This should take care of the home page, then after that point, you would have to use mod rewrite or site config options to get URLs pointed to the right place.
Is this totally squirrelly or is there a possibility here?
Thanks.