4 votes
Accepted

Multi domains in Craft 2 licensing

Using this technique to share the Craft app folder across different sites, results in each site having their own config folder. Since the license.key file that determines the licensing status of Craft ...
Steve Rowling's user avatar
4 votes
Accepted

How to route 404 errors for multi-site Craft?

I pondered this for a while, and then did this, which will direct us to specific entries (not templates, I don't want to create more of those): {# We need a unique 404 for each site - just take us to ...
4midori's user avatar
  • 656
4 votes

Craft 3 multi-lingual multi-sites setup with shared assets

You could create 2 site groups. One group for site A and one group for site B. Sitegroup A will contain contain 2 sites, the other one only one site. Your setup will look like this SiteGroup A -...
Robin Schambach's user avatar
3 votes
Accepted

user session for Multi Site

If both sites share a common root domain, you can share cookies by using that root domain as the cookie domain for both sites. This way, a login stored in the cookie for one site will also apply to ...
MoritzLost's user avatar
  • 11.3k
3 votes

How to setup assets in multi site where each site should have its own assets?

When you're creating a new local asset volume, you choose a file system path. I use both the site handle and the section handle in the path. For example: /assets/<SiteHandle>/images/<...
Vaughn D. Taylor's user avatar
3 votes

Multi site licences

If the multiple sites are based on sub-domains (i.e. site1.site.com, site2.site.com), then a single craft/config/license.key file will cover all of the sites with no issues.
Brad Bell's user avatar
  • 67.5k
3 votes
Accepted

Two domains - single install - Live Preview works only on one

In order to get Live Preview to work across different subdomains on a single install, you'll need to setup a few extra things as outlined in this support article: https://craftcms.com/support/cross-...
Brad Bell's user avatar
  • 67.5k
2 votes

Multi domains in Craft 2 licensing

As long as the control panel is only accessible from one domain, I'd say you're within the license requirements. example.com and example.fr are different domains, and really no less different than ...
megatrond's user avatar
  • 1,342
2 votes
Accepted

Live Preview in different languages on different top level domains

With the current implementation of Live Preview in Craft, using Live Preview across different top-level domains isn't possible due to the cross-domain policy (as you found out) along with a few others....
Brad Bell's user avatar
  • 67.5k
2 votes
Accepted

Multi sites: should I use Craft 2 locales, or go with Craft 3 alpha?

Brandon has stated (on the CraftCMS Slack channel, so, sadly, not easily linkable here) that custom locales will automatically translate to sites when upgrading from Craft 2 to Craft 3. At this point,...
Steve Rowling's user avatar
2 votes
Accepted

Possible to share assets, templates and plugins across two domains but not all content?

As long as your sites are hosted on the same server, you can easily share templates and plugins between them by defining the appropriate path constants in the index.php files for your sites: define('...
Mats Mikkel Rummelhoff's user avatar
2 votes
Accepted

How should I set up redirects from http://foo.com to http://www.foo.com

It's not really Craft related, but assuming that you use .htaccess you could set up rewrite conditions to redirect the request: # Rewrite Engine RewriteEngine On # force HTTPS RewriteCond %{HTTPS} ...
HendrikEng's user avatar
  • 1,064
2 votes
Accepted

Multi Site Multi Domain

I believe you need to use tweak the config/general.php file in order to have a baseUrl for a site that is a different domain name. 'siteUrl' => [ 'english' => 'https://www.mysite.com/', '...
Tammy Shipps's user avatar
2 votes
Accepted

Defining a domain for each site for both production and local - craft 4 multisite

Sites' "Base URL" setting can be set to an environment variable, in the format $PRIMARY_SITE_URL, $SWEDISH_SITE_URL etc. (note the dollar sign in front, which signals to Craft that the value ...
Mats Mikkel Rummelhoff's user avatar
1 vote
Accepted

Multi-domain configuration

You are overcomplicating this a little bit. This is nothing more than a CORS issue, you can simply resolve this by adjusting your nginx or apache config to also allow the origins for the subdomain ...
Michael Thomas's user avatar
1 vote

Defining a domain for each site for both production and local - craft 4 multisite

I suggest you to create a custom domain in you local pc, by add it into your hosts file. Usually the path for this file is on /etc/hosts, or in c:\Windows\System32\Drivers\etc\hosts for windows. So ...
aodihis's user avatar
  • 801
1 vote

Craft multi-site enable password protection

The free Knock-Knock plugin should be perfect for this. Like Craft itself, the plugin supports multi-environment configuration. And, it’s possible to configure it per site, as well.
Mats Mikkel Rummelhoff's user avatar
1 vote
Accepted

How can I setup a multi-domain under one Craft CMS

In Plesk, make sure that the DocumentRoot of the beer.com domain is the same as the DocumentRoot of the coffe.com domain In Craft, create an other site having beer.com as its Base URL
nstCactus's user avatar
  • 1,149
1 vote

How can I set an alias dynamically based on request?

As far as I know, using the @web alias is discouraged if its determined automatically (which is the default behavior). If you override it with a hardcoded value in production I think you should be ...
nstCactus's user avatar
  • 1,149
1 vote
Accepted

Craft multisite site without www redirects unwanted to default site

The problem is that the force ww redirect isn't setup correctly. This must be setup like this: # Force www # ----------------------- RewriteCond %{HTTP_HOST} ^domain-a.com [NC] ...
Maarten Heideman's user avatar
1 vote

Is there a way to avoid content duplication on multi site setup?

That would probably be the Propagation Method setting in the channel´s settings. There you can choose "Only save entries to the site they were created in" (among other options). The thing is not your ...
KSP's user avatar
  • 849
1 vote

4 Different HTML from single Craft 3 CMS on 4 different domains?

Yes, you can. How you organize the templates for each site is completely up to you. Here's the docs on setting up multiple sites in Craft. I would likely use a different layout template for each site....
Simon Kuran's user avatar
  • 3,015
1 vote

Setting Up Multiple Sites

Firstly the Craft install on your beta site, does it share the same database? Craft's multi-site setup is meant to use a single database. Secondly I'm not exactly sure what 'step 7' is asking me ...
Brad Bell's user avatar
  • 67.5k
1 vote

How to setup assets in multi site where each site should have its own assets?

I had the same question and here is a way to have assets in separate root folders using aliases with Site handles: How do I dynamically define Asset Volumes' Base URLs for different Sites?
Kirk Roberts's user avatar
1 vote

Multi-Site Licence

If the two different domains are for the same "site", i.e. they have common things between them you can share, then yes - you can use one license for them. Craft's multi-site functionality isn't ...
Brad Bell's user avatar
  • 67.5k
1 vote
Accepted

Structuring site with multiple subsites

As of this comment, Craft 3 is still in beta but you may want to consider it as your challenge sounds like the new Sites functionality may be a good fit. Sites, allow you to manage multiple websites ...
Ben Parizek's user avatar
  • 13.4k
1 vote

Possible to share assets, templates and plugins across two domains but not all content?

You could make use of symbolic links. This works if your sites are: on the same system your system is running on a Linux server environment you have console access (ex. SSH) With symbolic links ...
Tom Bauer's user avatar
  • 1,327
1 vote

Possible to share assets, templates and plugins across two domains but not all content?

You could use a deployment solution like Beanstalk to update both your template folders with one push. I would think you could use the same assets folder fairly easily as long as the folder lives ...
Ethan Thompson's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible