⭐️ If you like Statamic, give it a star on GitHub! ⭐️

Nested multi site

Hey Guys,

I have used the multi site functionality before, but now I want it 1 layer deeper. I have countries with languages ​​in them. Each country has its own content and its own default language. I will do this through subdomains. someting like this below.

Has anyone done this before or do you have a good solution for me?

``// portugal
//     portugal.example.com (default language PT)
//     portugal.example.com/en 
// switzerland
//     switzerland.example.com (default language DE)
//     switzerland.example.com/fr
//     switzerland.example.com/en (again EN but diverent content)

'sites' => [
    'portugal' => [
        'name' => 'portugal',
        'url' => 'portugal.example.com',
        'sites' => [
            'default' => [
                'name' => 'portugese',
                'url' => '/',
            ],
            'english' => [
                'name' => 'English',
                'url' => '/en',
            ]
        ]
    ],
    'switzerland' => [
        'name' => 'switzerland',
        'url' => 'switzerland.example.com',
        'sites' => [
            'default' => [
                'name' => 'german',
                'url' => '/',
            ],
            'french' => [
                'name' => 'french',
                'url' => '/fr',
            ],
            'english' => [
                'name' => 'English',
                'url' => '/en',
            ]
        ]
    ],
],``
Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
10 Replies
4 Followers