[TYPO3-english] RealUrl multilanguage with and without country PathSegments

Basti Baumann sb at typo3erweiterungen.de
Mon Sep 5 17:09:33 CEST 2011


Hi,

my realurl conf is that my main domains get links like:
de: www.domain.de/de/german-pagename/
en: www.domain.de/en/english-pagename/
fr: www.domain.de/fr/french-pagename/

'preVars' => array(
	array(
	'GETvar' => 'no_cache',
		'valueMap' => array(
			'nc' => 1,
		),
		'noMatch' => 'bypass',
	),
   array(
     'GETvar' => 'L',
     'valueMap' => array(
          'en' => '0',
          'de' => '1',
          'nl' => '2',
          'fr' => '3',
          'uk' => '4',
          'us' => '5',
          'es' => '6',
          'ru' => '7',
          'dk' => '9',
     ),
     'valueDefault' => 'de',
#    'noMatch' => 'bypass',
   ),
),

This works fine.

But I have additional domains that only have to display one language 
(from the same wbsite tree).
e.g.: www.domain.fr/french-pagename/

To realized this by rewriting the prevars:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.fr'] = 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.fr']['preVars'] = 
array();

This works, however the generated url ist not the translated url (e.g.: 
www.domain.fr/french-pagename/), but the original sitename (e.g.: 
www.domain.fr/english-pagename).

And this is for seo reasons not good.

How could I fix this problem?

Best regards
Sebastian


More information about the TYPO3-english mailing list