[TYPO3] realurl and rootpage for alternative language

Celso Reeks typo3 at distopia.com
Sat Sep 9 05:42:23 CEST 2006


Hi,

I'm having some trouble with RealURL configuration.

I have a website with 2 languages using the "one tree fits all" logic.  
Works great:

http://www.projetobira.com/

Language selection is ok, as well as language detection.  So far, 
everything is running fine.


But problem comes as soon as I try to configure Typo3 to use RealURL.

Actually, RealURL works fine, creating nice URLs for all my pages, 
except for one LITTLE detail: when I try to go to the Root Page for my 
alternative language (http://projetobira.com/en - english) I get an 
"Error! Reason: "en/" could not be found, closest page matching is".  
And that's all.


Weird fact is that all subpages for english work.  Root page in 
portuguese (default) also works.  Everything works beautifully. Except 
for the english root page.


Anybody have a clue?


Thanks,
Celso

...and now for the technical stuff...


+++++++++ RealURL ErrorLog ++++++++++++

en/ 		"en/" could not be found, closest page matching is 		Fri 08 Sep 
2006 19:53:02


+++++++++ end RealURL ErrorLog ++++++++++++


+++++++++ Template +++++++++

config.simulateStaticDocuments = 0
config.baseURL = http://www.projetobira.com/
config.tx_realurl_enable = 1

config.sys_language_uid = 0
config.locale_all = pt_BR
config.language = br
config.linkVars = L

# Portuguese language, sys_language.uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = br
[global]

# English language, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
[global]

+++++++++ end Template +++++++++


+++++++++ RealURL config ++++++++++

TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][] 
=
       'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][] 
=
       'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']
       ['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']
       ['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';

TYPO3_CONF_VARS['FE']['addRootLineFields'] .= 
',tx_realurl_pathsegment,title,nav_title,alias';

TYPO3_CONF_VARS['EXTCONF']['realurl'] = array (
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
            'rootPageID' => '2',
        ),
        'redirects' => array (
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (
                    'nc' => '1',
                ),
                'noMatch' => 'bypass'
            ),
            '1' => array (
                'GETvar' => 'L',
                'valueMap' => array (
                    'br' => '0',
                    'en' => '1',
                ),
                'noMatch' => 'bypass',
            ),
            '2' => array (
                'GETvar' => 'lang',
                'valueMap' => array (
                    'br' => 'br',
                    'en' => 'en',
                ),
                'noMatch' => 'bypass',
            ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '7',
            'rootpage_id' => '2',
        ),
        'fixedPostVars' => array (
        ),
        'fileName' => array (
            'defaultToHTMLsuffixOnPrev' => false,
        ),
    ),

);

+++++++++ end RealURL config ++++++++++




More information about the TYPO3-english mailing list