Hallo zusammen,
ich sitze gerade etwas verwirrt vor meiner realUrl-Konfiguration. Bisher hatte ich zwei Sprachen mit zwei Domains, was auch wunderbar funktioniert. Jetzt kommt aber eine weitere Sprache hinzu, welche einer bereits bestehenden Domain zugeordnet werden soll.
Die gewünschte Konfiguration ist:
L=0 => domain.de
L=1 => domain.com
L=2 => domain.com/pl/
Hier meine aktuelle Konfiguration:
<?php
$TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = getRealURL('1');
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(
'encode' => array(
array(
'GETvar' => 'L',
'value' => '',
'ifDifferentToCurrent' => true,
'useConfiguration' => '_DEFAULT',
'urlPrepend' => 'http://www.domain.de',
),
array(
'GETvar' => 'L',
'value' => '0',
'ifDifferentToCurrent' => true,
'useConfiguration' => '_DEFAULT',
'urlPrepend' => 'http://www.domain.de',
),
array(
'GETvar' => 'L',
'value' => '1',
'ifDifferentToCurrent' => true,
'useConfiguration' => '_DEFAULT',
'urlPrepend' => 'http://www.domain.com',
),
),
'decode' => array(
'www.turningtec.de' => array(
'GETvars' => array(
'L' => '',
),
'useConfiguration' => '_DEFAULT',
),
'www.turningtec.com' => array(
'GETvars' => array(
'L' => '1',
),
'useConfiguration' => '_DEFAULT',
),
),
);
function getRealURL($root)
{
return array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array (),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'disablePathCache' => 0,
'rootpage_id' => 73,
'firstHitPathCache' => 1 ,
),
'fixedPostVars' => array (
),
'postVarSets' => array (
'_DEFAULT' => array (
),
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => false,
),
);
}
/**********************************
REALURL end
***********************************/
?>
Könnt ihr mir eventuell weiterhelfen?
Viele Grüße
Daniel