Multi-site setup in Craft3 Hi guys are the any more detailed tutorials on how to setup a multi site on Craft3 BETA? I created two sites now, a Danish and English through the admin (Settings → Sites). The domain is the same but the Danish version will have the path http://localhost:8888/dk whereas the English version will be everything that does not have the first path of /dk.

I have set in the general.php the following:

return [
    '*' =&gt; [
        'omitScriptNameInUrls' =&gt; true,
        'usePathInfo' =&gt; true,
        'generateTransformsBeforePageLoad' =&gt; true
    ],
   'SITEHANDLE_NAME_ENGLISH' =&gt; [
       'siteUrl' =&gt; 'http://localhost:8888/
   ],
   'SITEHANDLE_NAME_DANISH’ =&gt; [
       'siteUrl' =&gt; 'http://localhost:8888/dk'
   ],
    'defaultWeekStartDay' =&gt; 1,
    'enableCsrfProtection' =&gt; true,
    'omitScriptNameInUrls' =&gt; 'auto',
    'cpTrigger' =&gt; 'admin',
    'devMode' =&gt; false,
];


In the Danish folder /dk, I created a new index.php, and the site correctly direct to this file from the URL, BUT, it does not change the site to the the Danish site, even though I have defined my index.php with the new php constant:

&lt;?php
// Project root path
$root = dirname('../');
define('CRAFT_SITE', "SITEHANDLE_NAME_DANISH");
// Composer autoloader
require_once '../craft_folder/vendor/autoload.php';

// dotenv?
if (file_exists("../craft_folder/.env")) {
    $dotenv = new Dotenv\Dotenv("../craft_folder/");
    $dotenv-&gt;load();   
}

// Craft
define('CRAFT_BASE_PATH', "../craft_folder/");

$app = require '../craft_folder/vendor/craftcms/cms/bootstrap/web.php';

$app-&gt;run();


How do I tell Craft to load the Danish site from the index.php? Right now it will only load the primary site not matter what I try.

Thanks!
You can also check out the free video on it here: Using Craft CMS 3 Multi-site

Multi-site has changed as of Craft 3 RC11. It now requires much less config outside of the control panel. See the official docs on Sites in Craft 3.