0

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

Pim Broens
  • 702
  • 1
  • 5
  • 16
Felix
  • 5,452
  • 12
  • 68
  • 163
  • 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 Sep 28 '16 at 12:05

2 Answers2

3

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.

Georg Ringer
  • 7,779
  • 1
  • 16
  • 34
  • 2
    Just be careful because this manual is for realurl 1.x and some options are not valid for realurl 2.x. – User366 Sep 28 '16 at 12:08
  • Thank you for clarification, but: So you tell me, that the link to the official manual at docs.typo3.org is an old/outdated manual? Good to know, but IMHO just bad ... not only because the 'extension manual' link in the repository is just wrong/outdated, but much more because the extension then is also shipped with an outdated manual ... – BastianBalthasarBux Sep 29 '16 at 17:20
  • Yes, that's right. The manual is for the obsolete TYPO3 version. All information about version 2.x is here: https://github.com/dmitryd/typo3-realurl/wiki The reason: earlier manuals could be edited with LibreOffice. Now there is some kind of obscure text format, which I neither have time to learn, nor wish. Thuse the manual is only on the wiki. – User366 Oct 01 '16 at 08:43
2

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.

User366
  • 765
  • 4
  • 9