Hello,
we found the following solution that is quite similar to the suggestion from Autofahrn. Our setup includes two languages
- de (german) as default for *.de domain (default language)
- en (english) for *.com domain
In _init.php there is just:
if (preg_match("/(:2284|\.com)/", $config->httpHost)) {
$user->language = $languages->get('englisch');
}
Your question no. 2: It is important that you configure the settings for your root page to "/" for each language. In that case PW doesn't prefix your URL paths for the children.
Be careful! In case you use the front page editor - when a child page has the same path for every language, the front page editor is not able to save the page correctly. You have to use the backend. But if there are differences, for example *.com/imprint and *.de/impressum - the front page editor works fine.