Skip to content

Is there possible to implement multisite ? #854

Answered by LukeTowers
bachvtuan asked this question in Q&A
Discussion options

You must be logged in to vote

There is no one size fits all multisite solution, but in your specific case if you want to share everything except for themes then you can just use the domain driven environment configuration in order to set a different active theme per hostname: https://wintercms.com/docs/setup/configuration#domain-environment.

Basically you'd set the following in config/environment.php:

<?php

return [
    'hosts' => [
        'sitea.website.tld' => 'sitea',
        'siteb.website.tld' => 'siteb',
    ]
];

then in config/sitea/cms.php you'd set the following:

<?php

return [
    'activeTheme' => 'sitea',
];

and in config/siteb/cms.php you'd set the following:

<?php

return [
    'activeTheme' => 'siteb',…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LukeTowers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants