TYPO3 multi language & multi domain site with RealURL and language menu
To divert the German language on the .De domain is set as far as the standard in TYPO3. Now but if you have a .com domain and it is desired to convert this directly to the English language,
you must use the following TypoScript code: TypoScript setup of the template:
config {
baseURL = http://www.YOUR_DOMAIN.de/
sys_language_uid = 0
language = de
locale_all = de_DE
htmlTag_langKey = de-DE
}
[globalVar = GP:L = 1] || [global string = ENV: HTTP_HOST = http://www.YOUR_DOMAIN.com/]
config {
baseURL = http://www.YOUR_DOMAIN.com/
sys_language_uid = 1
language = en
locale_all = en_US
htmlTag_langKey = en-US
}
[end]
RealURL Setup : You can set below script in “realurl_conf.php”
At first, the selected domain inherits the default setup:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.YOUR_DOMAIN.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
Then, you have to configure the rootpage_id:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.YOUR_DOMAIN.de']['pagePath']['rootpage_id'] = 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(
'encode' => array(
array(
'GETvar' => 'L',
'value' => '0',
'useConfiguration' => 'www.YOUR_DOMAIN.de',
'urlPrepend' => 'http://www.YOUR_DOMAIN.de'
),
array(
'GETvar' => 'L',
'value' => '1',
'useConfiguration' => 'www.YOUR_DOMAIN.com/',
'urlPrepend' => 'http://www.YOUR_DOMAIN.com/'
),
),
'decode' => array(
'www.YOUR_DOMAIN.de' => array(
'GETvars' => array(
'L' => '0',
),
'useConfiguration' => 'www.YOUR_DOMAIN.de'
),
'www.YOUR_DOMAIN.com' => array(
'GETvars' => array(
'L' => '1',
),
'useConfiguration' => 'www.YOUR_DOMAIN.com'
),
)
);
This will definitely guide you.
If you have any query regarding multidomain then feel free to contact me at Jainish Senjaliya
Like this:
Like Loading...