[TYPO3-english] URL always displays links in default language with RealURL 1.12.6 and Typo3 6.1

Wolfgang Becker wolfgang.becker at visionate.com
Mon Jun 24 12:41:26 CEST 2013


Hi Experts,

I have an multi Domian Setuip with RealURL 1.12.6 
The Problem is, that the URLs are rendered like this:

// German
www.german.url/germantitle.html

// englisch
www.english.url/germantitle.html  <= should be ww.english.url/englishtitle.html

All Contents + Pagetitle are Correct 

I have read 
 http://www.dmitry-dulepov.com/2008/06/realurl-made-easy-part-1.html
 http://www.dmitry-dulepov.com/2008/06/realurl-made-easy-part-2.html
 http://www.dmitry-dulepov.com/2009/02/realurl-separate-language-domains-in.html

Here is my Setup:

Does anybody see the Problem?

[TYPOSCRIPT]
#realurl
config.simulateStaticDocuments = 0
config.baseURL = http://www.kinderbuch-apps.de/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

config.metaCharset=utf-8

#0 | 1 | hideNonTranslated
config.sys_language_overlay = 1

#config.sys_language_mode = content_fallback;0
configsys_language_mode = strict

# defining the default language
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de

# English language, sys_language.uid = 1
[globalVar = GP:L = 1]
config.baseURL = http://www.children-book-apps.com/
config.sys_language_uid = 1
config.language = en
config.locale_all = english
config.htmlTag_langKey = en
[global]

[REALURL]

$tx_realurl_config = array(
    'init' => array(
		'enableCHashCache' => true,
		'appendMissingSlash' => 'ifNotFile',
		'enableUrlDecodeCache' => true,
		'enableUrlEncodeCache' => true,
		'enableAllUnicodeLetters' => 0,
		'respectSimulateStaticURLs' => 0,
		'doNotRawUrlEncodeParameterNames' => true,
    ),
	'redirects' => array(),

    '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',
		),
		'2' => array (
			'GETvar' => 'lang',
			'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' => 7,
        'rootpage_id' => 1,
    ),
    'fileName' => array(
        'defaultToHTMLsuffixOnPrev' => 1,
        'index' => array(
            'feed.xml' => array(
                'keyValues' => array(
                    'type' => 100,
                ),
            ),
        ),
    ),

    'fixedPostVars' => array(
        '_DEFAULT' => array(
            array(
                'GETvar' => 'tx_ttnews[tt_news]',
                'lookUpTable' => array(
                    'table' => 'tt_news',
                    'id_field' => 'uid',
                    'alias_field' => 'concat(uid,title)',
                    'addWhereClause' => ' AND NOT deleted',
                    'useUniqueCache' => 0,
                    'useUniqueCache_conf' => array(
                        'strtolower' => 1,
                        'spaceCharacter' => '-',
                    ),
					'languageGetVar' => 'L',
					'languageField' => 'sys_language_uid',
					'transOrigPointerField' => 'l18n_parent',
					'autoUpdate' => 1,
					'expireDays' => 180,
                ),
            ),
        ),
    ),

    'postVarSets' => array(
        '_DEFAULT' => array(
            // news pagebrowser
            'browse' => array(
                array(
                    'GETvar' => 'tx_ttnews[pointer]',
                ),
            ),
        ),
    ),
);

// RealURL - valueMap creation for tt-news
for ($x = 1; $x <= 100; $x++) {
	$tx_realurl_config['fixedPostVars']['news'][0]['valueMap'][$x + 1] = $x;
}

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'www.kinderbuch-apps.de' => $tx_realurl_config,
	'kinderbuch-apps.de' => 'www.kinderbuch-apps.de',
	'www.children-book-apps.com' => $tx_realurl_config,
	'children-book-apps.com' => 'www.children-book-apps.com',
);

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(
	'encode' => array(
		array(
			'GETvar' => 'L',
			'value' => '',
			#'ifDifferentToCurrent' => true,
			'useConfiguration' => 'www.kinderbuch-apps.de',
			'urlPrepend' => 'http://www.kinderbuch-apps.de',
		),
		array(
			'GETvar' => 'L',
			'value' => '0',
			#'ifDifferentToCurrent' => true,
			'useConfiguration' => 'www.kinderbuch-apps.de',
			'urlPrepend' => 'http://www.kinderbuch-apps.de',
		),
		array(
			'GETvar' => 'L',
			'value' => '1',
			#'ifDifferentToCurrent' => true,
			'useConfiguration' => 'www.children-book-apps.com',
			'urlPrepend' => 'http://www.children-book-apps.com',
		),
	),
	'decode' => array(
		//Domains immer mit und ohne www. angeben

		'kinderbuch-apps.de' => array(
			'GETvars' => array(
				'L' => '0',
			),
			'useConfiguration' => 'www.kinderbuch-apps.de',
		),
		'www.kinderbuch-apps.de' => array(
			'GETvars' => array(
				'L' => '0',
			),
			'useConfiguration' => 'www.kinderbuch-apps.de',
		),

		'children-book-apps.com' => array(
			'GETvars' => array(
				'L' => '1',
			),
			'useConfiguration' => 'www.children-book-apps.com',
		),
		'www.children-book-apps.com' => array(
			'GETvars' => array(
				'L' => '1',
			),
			'useConfiguration' => 'www.children-book-apps.com',
		),
	),
);

// Rootpage ID anpassen
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.kinderbuch-apps.de']['pagePath']['rootpage_id'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.children-book-apps.com']['pagePath']['rootpage_id'] = 1;

unset($tx_realurl_config);
 


More information about the TYPO3-english mailing list