2
votes

I'm working on a website that is made in typo3. I'm doing a part of the website that is made by somebody else, so I don't know that much of typo3.

This website uses realurl to translate the url to a readable one. How can I make a realurl? When I make like for example the index page there is no realurl made for this page. How could I generate one?

3

3 Answers

2
votes
1
votes

Dmitry got more relevant tutorials about RealURL:

RealURL will be very easy to understand when you'll make it work with default configuration and understand the meaning of parts: 'init', 'preVars', 'postVarSets', 'pagePath', 'fixedPostVars' and 'fileName'.

0
votes

Copy my configuration typoscript in setup:

config.simulateStaticDocuments = 0

config.baseURL = /
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.absRefPrefix = http://www.ceisufro.cl/
page.config.language = cl
config.sys_language_uid= 0
config.useSysLanguageTitle = 1
config.language= es
config.language_alt= es
config.htmlTag_langKey= es
config.linkVars = L
config.sys_language_overlay = 1
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml"
   xml:lang="es" lang="es"*

In file localconf.php

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    'www.ceisufro.cl'=> array(
    'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),
       'preVars' => array(
          '0' => array(
             'GETvar' => 'L',
             'valueMap' => array(
                'es' => '1',
                'en' => '0',
                'it' => '4',
            ),
                'noMatch' => 'bypass',
             'valueDefault' => 'es',
         ),

      ),

       'fileName' => array(
          'defaultToHTMLsuffixOnPrev' => '1',
      ),

       'pagePath' => array(
          'type' => 'user',
          'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
          'spaceCharacter' => '-',
          'languageGetVar' => 'L',
          'expireDays' => '3',
          'rootpage_id' => '1',
      ), 'fileName' => array (
            'index' => array (
                'rss.xml' => array (
                    'keyValues' => array (
                        'type' => '100',
                        'id' => '37'
                    ),
                ),
                 'contacto.xml' => array (
                    'keyValues' => array (
                        'id' => '666',
                        'no_cache'=>'1'
                    ),
                ),

                )),
       'fixedPostVars' => array(
      ),

   ),

);

go to ext manager, find the ext realurl and add the following configurations

check Enable automatic configuration select Serializable in Automatic configuration file format check Enable devLog

I wait to can help somebody