What are the best practices for a multilingual website with Drupal 8 ?
There are 4 options:
1) buy one domain per language:
https://www.mydomaine.fr (for French)
https://www.mydomaine.de (for German)
2) create subdomains:
https://fr.mydomaine.com (for French)
https://de.mydomaine.com (for German)
3) create folders:
https://www.mydomaine.com/fr/ (for French)
https://www.mydomaine.com/de/ (for German)
4) the url parameter:
https://www.mydomaine.com/?language=fr (for French)
https://www.mydomaine.com/?language=de (for German)
Option 1 is too expensive so I do not retect it.
What are the advantages and disadvantages of options 2, 3 and 4?
What do you recommend ?
Regarding Option 2, if I created 2 server, should the docroot point to the same directory or should I create 2 separate sites?
Regarding option 3, I already have views in place that uses context filter based on the raw value from the URL.
With a url
/node/6 I like "Path component: 2".
If the url is
/de/node/6 must we modify "Path component" to 3 ?
Regarding option 4, it is very simple to set up but is it recommended for a good SEO ?
On my site I activated English and French.
The pages can be translated from the editors.
My problem is that in Google, for a node I have 3 results with different URLs.
This is bad for the SEO of my site. What should I do ?
How to fill the meta tags and the robot.txt ?