I've got a website with one domain name and multiple subdomains. Every of them will use the same structure (html, css, js) but some of them will connect to their own database.
On the server, I've just one folder which contains all the websites files and dll. On IIS, the domain and subdomains point to this directory.
The idea is to get the sitename and id and depending on their values, to use a different database connection string.
Is there any way to change the umbraco connection string directly from the code ?
How to change the ConnectionString
I've got a website with one domain name and multiple subdomains. Every of them will use the same structure (html, css, js) but some of them will connect to their own database.
On the server, I've just one folder which contains all the websites files and dll. On IIS, the domain and subdomains point to this directory.
The idea is to get the sitename and id and depending on their values, to use a different database connection string.
Is there any way to change the umbraco connection string directly from the code ?
I don't see why you need a differnt connection string. Umbraco supports multi sites from one installation.
If data cannot be in the same database for some reason than you need to have a Umbraco install per site.
Dave
is working on a reply...