[TYPO3] RealUrl, multidomain, multilanguage, single tree setup 2
Tomas Mrozek
mail at cascaval.com
Mon Dec 3 14:12:34 CET 2007
1. If your site is showing different language content despite the
TypoScript condition then your problem is in your TypoScript setup and
it wouldn't work even without RealURL, as Dmitry pointed out.
2. You don't want preVars in your URLs since you want to choose language
according to domain, not the preVar. Therefore, there's no need to
definy preVars for RealURL in the localconf.php.
3. You most probably need to have set $_GET['L']. Otherwise, RealURL
will create links from page titles of default language. Therefore,
SOMETHING must set the variable.
I am not sure what would be a good approach. I used to solve it by
adding folowing to the localconf.php:
if(preg_match('/english_domain\.com/', $_SERVER["HTTP_HOST"])) {
$_GET['L'] = 1;
} else if(preg_match('/german_domain\.de/', $_SERVER["HTTP_HOST"])) {
$_GET['L'] = 2;
} // else $_GET['L'] is not set, so it's default, Slovenian
Tomas Mrozek
More information about the TYPO3-english
mailing list