[TYPO3-english] RealURL and shortcuts

Victor Livakovsky v-tyok at mail.ru
Fri Mar 11 22:03:47 CET 2011


Hi, List and hello, Dmitry.

Most of websites, that I made long time ago had such a structure:
Home (root)
  |
   -- Home (shortcut to root)
   -- Page 1
   -- Page 2
   ...

The advantage of such structure was, that links in menus were generated this 
way:
http://example.com/
http://example.com/page-1.html
http://example.com/page-2.html
...

Notice, that first link was a base url - not http://example.com/home.html
Now I created a new website with TYPO3 4.5.2, RealURL 1.10.2 and same 
structure, but this time shortcut is not resolved - it shows home.html 
instead of base url.

I had a look at manual and found, that tx_realurl_advanced contains 
'dontResolveShortcuts' boolean, I set it to false, but nothing happened.


Here is the full config:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
    'www.example.com' => array (
        'init' => array (
            'enableCHashCache' => true,
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => true,
            'enableUrlEncodeCache' => true,
            'emptyUrlReturnValue' => true,
            'emptySegmentValue' => '-'
        ),
        'redirects' => array (
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (
                    'nc' => '1',
                ),
                'noMatch' => 'bypass'
            ),
            '1' => array (
                'GETvar' => 'L',
                'valueMap' => array (
                    'en' => '1',
                ),
                'noMatch' => 'bypass'
            ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '3',
            'rootpage_id' => '1',
            'disablePathCache' => '0',
            'autoUpdatePathCache' => '0',
            'dontResolveShortcuts' => '0',
        ),
        'fixedPostVars' => array (
        ),
        'postVarSets' => array (
            '_DEFAULT' => array (
            ),
        ),
        'fileName' => array (
            'defaultToHTMLsuffixOnPrev' => true,
            'index' => array (
                'rss.xml' => array (
                    'keyValues' => array (
                        'type' => '100',
                    ),
                ),
                'rss091.xml' => array (
                    'keyValues' => array (
                        'type' => '101',
                    ),
                ),
                'rdf.xml' => array (
                    'keyValues' => array (
                        'type' => '102',
                    ),
                ),
                'atom.xml' => array (
                    'keyValues' => array (
                        'type' => '103',
                    ),
                ),
                'sitemap.xml' => array (
                    'keyValues' => array (
                        'type' => '200',
                    )
                ),
            ),
        ),
    ),
);

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['example.com'] = 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.example.com']; 



More information about the TYPO3-english mailing list