0
votes

I'm using TYPO3 7.6.11 and realurl 2.0.15

my translated versions got this url:

http://url.de/3/services

is there a way to replace the 3 with the language code? for 3 it should be en for example?

thanks a lot

2
Just FYI: it is not "real url" but "reaurl". You will not like your name spelled as "Fe Lix", right? :) Please, make sure you spell the name correctly next time. Do some respect for the developer. Thanks!User366

2 Answers

3
votes

You need to add the 'preVars' configuration array for your languages to realurl. It is straigtly described in the manual: Realurl manual - language example config deep-link

Excerpt/Example:

    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'] ['realurl'] ['_DEFAULT'] ['preVars'] => array(
                array(
                    'GETvar' => 'L',
                    'valueMap' => array(
                        'de' => '0',
                        'en' => '1',
                        ),
                    'valueDefault' => 'de',
                    # 'noMatch' => 'bypass',
                ),
);

Alternatively you could just use the 'automatic configuration' shipped with realurl. AFAIR it usually adds also lang-configs. The Auto-Conf feature is to be enabled via Extension-Manager.

2
votes

Please, see how to set up languages correctly: https://github.com/dmitryd/typo3-realurl/wiki/Notes-for-Integrators#configuring-languages There are instructions and examples there.