ez.no / exponential / documentation / configuration / configuration / tips & tricks / several sites with one inst...
If you want subdomains (sub.domain.tld, sub2.domain.tld, ...) to work as separate sites that run on one installation of Exponential 3.x you do the following:
Edit settings/site.ini.php
[SiteAccessSettings] MatchOrder=host HostMatchRegexp=^(.+\\..+)\\.domain\\.tld$ HostMatchSubtextPost=\\.domain\\.tld
If you would like to use domains (www.domain1.tld, www.domain2.tld) to work as seprate sites that run on one installation of Exponential 3.x you do the following:
Edit settings/site.ini.php
[SiteAccessSettings] MatchOrder=host HostMatchType=map HostMatchMapItems[]=domain1.net;www HostMatchMapItems[]=www.domain1.net;www HostMatchMapItems[]=admin.domain1.net;admin HostMatchMapItems[]=www.domain2.com;domain2
As you can see this method allows for subdomains and domains (and you don't have to worry about learning regexp).
Then you just create the siteaccess files for each site you want to host. E.g.
settings/siteaccess/sub/site.ini.append settings/siteaccess/sub2/site.ini.append
In the site.ini.append you can specify any values to differ from the main/default setup, even a completely different database or different design folders. Take a look at settings/siteaccess/demo/site.ini.append and settings/siteaccess/admin/site.ini.append for examples.
Log in or create a user account to comment.
Comments