Okay, I am here because I would like to have a site in the following structure:
- https://site.com (default english version)
- https://site.com/ko (korean)
- https://site.com/pt (portuguese)
I would like to use ONE uploads folder to store all of the assets for all 3 languages(plus any additional languages added after), use all of the same templates, and use all of the same css and js files.
My current directory structure is the craft 3 default(I used the cli installer, which is great). Here is the important pieces of what my directory looks like:
-templates
- web
- dist
- js
- css
- uploads
- ko
- pt
Lets say I have the following templates:
- home.html
- newsroom.html
- whitepapers.html
- help.html
I would expect to be able to visit each in the following manner:
(Home)
- https://site.com
- https:///site.com/ko
- https://site.com/pt
(Newsroom)
- https://site.com/newsroom
- https:///site.com/ko/newsroom
- https://site.com/pt/newsroom
...etc hopefully you get the picture.
Is this at all possible with Craft 3? I keep running into issues where each languages site is trying to pull in the uploads or css/js assets from within their respective folders:
Also, here is the sites config in general.php:
'dev' => [
'siteUrl' => [
'default' => 'https://site.test',
'korean' => 'https://site.test/ko',
'brazil' => 'https://site.test/pt'
],
'devMode' => true,
]
SOLUTION For anyone visiting this in the future, here are the updates to my config that solved the problem. Please refer to this after you have read Robin and Jolle's answers, they are both very helpful.
'dev' => [
'siteUrl' => [
'default' => 'http://site.test',
'korean' => 'http://site.test/ko',
'brazil' => 'http://site.test/bz'
],
'aliases' => [
'basePath' => '/Users/dzuz/localhost/site/web',
'baseUrl' => 'http://site.test/',
],
'devMode' => true,
],

koandptfolders/files. Craft will only access one singleindex.phpthe site does not matter. The errors should be fixed then – Robin Schambach Apr 05 '18 at 11:13