[Typo3] RealURL troubleshooting guide?

Alex Heizer alex at tekdevelopment.com
Sun Oct 23 13:06:18 CEST 2005


Hi Michael,

You'll need to edit 3 things:
1. Your .htaccess file, located in your public_html directory. It is 
documented within the file, so just look for the lines that refer to realURL
2. Your localconf.php file. You can edit this from within your install tool.
3. Your Template Setup field within your main template.

Place this code at the top of the Setup field of your main template 
(don't include the "snips"):

<---snip--->

config.simulateStaticDocuments = 0
config.baseURL = 1
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

<---snip--->


Then, add this code to your localconf.php file (don't include the 
"snips"), it includes the code to make the News plugin realURL-friendly:

<---snip--->

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= 
',tx_realurl_pathsegment,alias,nav_title,tit
le';

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    '_DEFAULT' => array(
        'init' => array(
            'enableCHashCache' => 1,
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => 1,
            'enableUrlEncodeCache' => 1,
        ),
        'redirects' => array(),
        'preVars' => array(
            array(
                'GETvar' => 'no_cache',
                'valueMap' => array(
                    'nc' => 1,
                ),
                'noMatch' => 'bypass',
            ),
            array(
                'GETvar' => 'L',
                'valueMap' => array(
                    'dk' => '2',
                    'de' => '1',
                ),
                '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' => 472,
        ),
        'fixedPostVars' => array(),
        'postVarSets' => array(
            '_DEFAULT' => array(
                // news archive parameters
                'archive' => array(
                    array(
                        'GETvar' => 'tx_ttnews[year]' ,
                        ),
                    array(
                        'GETvar' => 'tx_ttnews[month]' ,
                           'valueMap' => array(
                            'january' => '01',
                            'february' => '02',
                            'march' => '03',
                            'april' => '04',
                            'may' => '05',
                            'june' => '06',
                            'july' => '07',
                            'august' => '08',
                            'september' => '09',
                            'october' => '10',
                            'november' => '11',
                            'december' => '12',
                               )
                        ),
                    ),
                // news pagebrowser
                'browse' => array(
                    array(
                        'GETvar' => 'tx_ttnews[pointer]',
                        ),
                    ),
                // news categories
                'select_category' => array (
                    array(
                        'GETvar' => 'tx_ttnews[cat]',
                        ),
                    ),
                // news articles and searchwords
                'article' => array(
                    array(
                        'GETvar' => 'tx_ttnews[tt_news]',
                        'lookUpTable' => array(
                            'table' => 'tt_news',
                            'id_field' => 'uid',
                            'alias_field' => 'title',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => 1,
                            'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                                ),
                            ),
                        ),
                    array(
                        'GETvar' => 'tx_ttnews[swords]',
                        ),
                    ),
                ),
            ),
        // configure filenames for different pagetypes
        'fileName' => array(
            'index' => array(
                'rss.xml' => array(
                    'keyValues' => array(
                        'type' => 100,
                    ),
                ),
                'rss091.xml' => array(
                    'keyValues' => array(
                        'type' => 101,
                     ),
                ),
                'rdf.xml' => array(
                    'keyValues' => array(
                        'type' => 102,
                    ),
                ),
                'print.html' => array(
                    'keyValues' => array(
                        'type' => 98,
                    ),
                ),
                'atom.xml' => array(
                    'keyValues' => array(
                        'type' => 103,
                    ),
                ),
            ),
        ),
    ),
);

<---snip--->

Good luck!

Alex


Michael Baker wrote:

>I'm having problems getting RealURL to work and/or understanding what 
>I'm meant to do to get it to work.
>
>Is there a RealURL troubleshooting guide?  If so where is it?
>
>Michael.
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
>  
>




More information about the TYPO3-english mailing list