Goal
The use of the TYPO3 Extension RealURL in conjunction with a multilanguage website.
RealURL 0.3.0
Using the standard settings of Typo3 when building websites, web-urls look similiar to this one:
www.dwwd.ch/index.php?id=752
There are different methods to change this unaestetic look. For multilanguage websites the use of RealURL is recommended, because this extension makes it possible to display the urls in their appropriate language. Example:
www.dwwd.ch/english/stefans-corner.html
The Solution
The Typo3 usergroup Munich has written an easy-to-use tutorial on how to use RealURL. With it the unpicturesque urls are converted into searchengine-friendly ones. However, because we use more than one language, some more adjustments to the look have to be done...
www.dwwd.ch/stefans-corner.html&L=2
RealURL is configured via the file localconf.php in Typo3. In the tutorial of the TYPO3-usergroup Munich, it is mentioned to modify the code of the file ext_localconf.php (e.g. in typo3conf/ext/realurl). This produced in my case only a half-satisfying result and I modified the localconf.php in typo3conf/ which produced the correct result. The following code is inserted at the appropriate position:
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '0',
'english' => '0',
'de' => '10',
'german' => '10',
'ch' => '11',
'chinese' => '11',
),
'valueDefault' => 'en',
),
),
Save, empty cache and test it. The urls should look analogue to this one:
www.dwwd.ch/en/stefans-corner.html
Should the site of the TYPO3 usergroup Munich be down or the tutorial removed, you can download it from this site (tutorial in german only).