[TYPO3-english] RealURL, multilanguage with _DOMAIN and incorrect root page URL
Victor Livakovsky
v-tyok at mail.ru
Mon Aug 15 12:52:44 CEST 2011
Hi, List.
I have a multilanguage website, where each language has it's own domain.
Everything is cool, but the problem on a root page appears: any link,
generated with typolink to this page (id=1) looks like this: a
href="http://www.german-domain.com/http://www.german-domain.com/". Language
menu generates such a link to English version: a
href="http://www.english-domain.com/http://www.german-domain.com/"
Same situation with English version of a website. Link to German version
looks like this: a
href="http://www.german-domain.com/http://www.english-domain.com/" Link to
root page: a
href="http://www.english-domain.com/http://www.english-domain.com/"
What I did wrong?
TYPO3 4.5.4
RealURL 1.11.2
RealURL configuration:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'www.german-domain.com' => array (
'init' => array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => true,
'emptySegmentValue' => '-'
),
'preVars' => array (
'0' => array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => '1',
),
'noMatch' => 'bypass'
),
'1' => array (
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
'noMatch' => 'bypass'
),
),
'pagePath' => array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => '3',
'rootpage_id' => '1',
'disablePathCache' => '0',
'autoUpdatePathCache' => '1',
),
'fixedPostVars' => array (
),
'postVarSets' => array (
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => true,
'index' => array (
'rss.xml' => array (
'keyValues' => array (
'type' => '100',
),
),
'sitemap.xml' => array (
'keyValues' => array (
'type' => '200',
)
),
),
),
),
'_DOMAINS' => array(
'encode' => array(
array(
'GETvar' => 'L',
'value' => '0',
'useConfiguration' => 'www.german-domain.com',
'urlPrepend' => 'http://www.german-domain.com',
),
array(
'GETvar' => 'L',
'value' => '1',
'useConfiguration' => 'www.english-domain.com',
'urlPrepend' => 'http://www.english-domain.com',
),
),
'decode' => array(
'www.german-domain.com' => array(
'GETvars' => array(
'L' => '0',
),
'useConfiguration' => 'www.german-domain.com',
),
'www.english-domain.com' => array(
'GETvars' => array(
'L' => '1',
),
'useConfiguration' => 'www.english-domain.com',
),
),
),
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.english-domain.com']
=
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.german-domain.com'];
More information about the TYPO3-english
mailing list