Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fred - CT 9 posts 29 karma points
    Mar 03, 2015 @ 09:53
    Fred - CT
    0

    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 ?

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Mar 03, 2015 @ 18:11
    Dave Woestenborghs
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft