Single Orchard CMS website for multiple websites or installation for each

Since the garden is database-based, it seems that one installation for installation in the garden can be hosted in IIS with several domain connections and each domain has pulled its own content. But this does not seem to be the case. I have to create new IIS websites for each installation of gardens. It seems very redundant to have all of these websites with the same underlying content.

How can I set up one Orchard website in IIS and have many domains that point to it, have unique content and themes?

Forgive my ignorance for this if it is egregious, but I just ended up with a week-long adventure evaluating WordPress and running into the same problem. So my fuse is a little shorter with Orchard.

+4
source share
2 answers

It seems that Orchard sites can be configured in a multi-tenant configuration:

http://docs.orchardproject.net/Documentation/Setting-up-a-multi-tenant-orchard-site

+4
source

Even without using multiple Orchard tenants, the rewrite rule module can be used to redirect different domains or subdomains to different addresses within your site.

In the site configuration, I was able to add a list of nodes separated by commas (since I had multi-user mode, I did this in Tenancy / Default / Host).

After installing the rewrite rule module, I added a rule

RewriteCond %{HTTP_HOST} ^((www\.)?shooting\-?coach\.de)$ [NC] RewriteRule ^/+.*$ http://harald-muehlhoff.de/fotograf/ [R=302,L] 

redirect all traffic from [www.] shooting [-] coach.de [/ something] to harald-muehlhoff.de/fotograf/, ignoring the original uri request. Obviously, your requirements may vary, but hopefully this example helps you get started.

+1
source

Source: https://habr.com/ru/post/1411892/


All Articles