Discussion:
[TYPO3-english] How to install 8 domains with 2 languages ?
TSniper
2018-03-07 08:51:22 UTC
Permalink
Hi all,

I one website with DE and FR language and i'd like to install 5 domains 4 for the "DE" lang and 4 for the "FR" lang, here the code i make for it in realUrl configuration:

'mysite.com' => [
'preVars' => [
[
'GETvar' => 'L',
'valueMap' => [
'de' => 0,
'fr' => 1,
],
'noMatch' => 'bypass',
],
],
// other options follow
],
'mysite.de' => 'mysite.com',
'mysite1.de' => 'mysite.com',
'mysite2.de' => 'mysite.com',
'mysite3.de' => 'mysite.com',
'mysite.ch' => 'mysite.com',
'mysite2.ch' => 'mysite.com',
'mysite.fr' => 'mysite.com',
'mysite2.fr' => 'mysite.com',
// DECODE
'_DOMAINS' => [
'encode' => [
[
'GETvar' => 'L',
'value' => '0',
'urlPrepend' => 'https://mysite.com/',
'useConfiguration' => 'mysite.com',
],
[
'GETvar' => 'L',
'value' => '0',
'urlPrepend' => 'https://mysite1.com/',
'useConfiguration' => 'mysite1.com',
],
[
'GETvar' => 'L',
'value' => '0',
'urlPrepend' => 'https://mysite2.com/',
'useConfiguration' => 'mysite2.com',
],
[
'GETvar' => 'L',
'value' => '0',
'urlPrepend' => 'https://mysite3.com/',
'useConfiguration' => 'mysite3.com',
],
[
'GETvar' => 'L',
'value' => '1',
'urlPrepend' => 'https://mysite.ch/',
'useConfiguration' => 'mysite.ch',
],
[
'GETvar' => 'L',
'value' => '1',
'urlPrepend' => 'https://mysite2.ch/',
'useConfiguration' => 'mysite2.ch',
],
[
'GETvar' => 'L',
'value' => '1',
'urlPrepend' => 'https://mysite.fr/',
'useConfiguration' => 'mysite.fr',
],
[
'GETvar' => 'L',
'value' => '1',
'urlPrepend' => 'https://mysite2.fr/',
'useConfiguration' => 'mysite2.fr',
],
],
],

The *.com and *.de are in German Lang, the .ch and .fr are in French lang, can anyone help me please with this ?
TSniper
2018-03-09 08:15:09 UTC
Permalink
When the internet user go into .com domain he must get the english version, when he write and *.ch domain he will get the french language of the website, can we do that with realurl ? what i'm missing ?
TSniper
2018-03-12 11:36:08 UTC
Permalink
just maybe for anyone need this in the future, i have added www. in thedomain in backend and it worked fine for me now.
Loading...