Example Configuration for RealUrl2 in a Multidomain- und Multilanguage-Setup.

<?php
 
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
 
// Adjust to your needs, domain names and root Page uids
$domain1 = 'domain1.de';
$rootPageUid1 = 1;
 
$domain2 = 'domain2.de';
$rootPageUid2 = 26;
 
$domain3 = 'domain3.de';
$rootPageUid3 = 43;
 
$domain4 = 'domain4.de';
$rootPageUid4 = 19;
 
$domain5 = 'domain5.de';
$rootPageUid5 = 92;
 
$rssFeedPageType = 9818; // pageType of your RSS feed page (f.e. EXT:news)
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain1] = array(
    'pagePath' => array(
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => '3',
        'rootpage_id' => $rootPageUid1,
        //'languageExceptionUids' => '2', // IDs of languages to exclude from realurl, f.e. arabic und chinese
        //'firstHitPathCache' => 1,
        'autoUpdatePathCache' => '1',
    ),
    'init' => array(
        'enableCHashCache' => 1,
        'appendMissingSlash' => 'ifNotFile',
        'enableUrlDecodeCache' => 1,
        'enableUrlEncodeCache' => 1,
    ),
    'fileName' => array(
        'defaultToHTMLsuffixOnPrev' => 1,
        'acceptHTMLsuffix' => 1,
        'index' => array(
            'feed.rss' => array(
                'keyValues' => array(
                    'type' => $rssFeedPageType,
                )
            ),
            'sitemap.xml' => array(
                'keyValues' => array(
                    'type' => 841132,
                ),
            ),
 
        )
    ),
    'preVars' => array(
        array(
            'GETvar' => 'L',
 
            // IDs of all languages and the wanted url part
            'valueMap' => array(
                'fr' => '3',
                'ar' => '2',
                'en' => '1',
            ),
            'noMatch' => 'bypass',
        ),
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'nc' => 1,
            ),
            'noMatch' => 'bypass',
        ),
    ),
    'fixedPostVars' => array(
        'newsDetailConfiguration' => array(
            array(
                'GETvar' => 'tx_news_pi1[action]',
                'valueMap' => array(
                    'detail' => '',
                ),
                'noMatch' => 'bypass'
            ),
            array(
                'GETvar' => 'tx_news_pi1[controller]',
                'valueMap' => array(
                    'News' => '',
                ),
                'noMatch' => 'bypass'
            ),
            array(
                'GETvar' => 'tx_news_pi1[news]',
                'lookUpTable' => array(
                    'table' => 'tx_news_domain_model_news',
                    'id_field' => 'uid',
                    'alias_field' => 'title',
                    'addWhereClause' => ' AND NOT deleted',
                    'useUniqueCache' => 1,
                    'useUniqueCache_conf' => array(
                        'strtolower' => 1,
                        'spaceCharacter' => '-'
                    ),
                    'languageGetVar' => 'L',
                    'languageExceptionUids' => '',
                    'languageField' => 'sys_language_uid',
                    'transOrigPointerField' => 'l10n_parent',
                    'autoUpdate' => 1,
                    'expireDays' => 180,
                )
            )
        ),
        'newsCategoryConfiguration' => array(
            array(
                'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
                'lookUpTable' => array(
                    'table' => 'sys_category',
                    'id_field' => 'uid',
                    'alias_field' => 'title',
                    'addWhereClause' => ' AND NOT deleted',
                    'useUniqueCache' => 1,
                    'useUniqueCache_conf' => array(
                        'strtolower' => 1,
                        'spaceCharacter' => '-'
                    )
                )
            )
        ),
        'newsTagConfiguration' => array(
            array(
                'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
                'lookUpTable' => array(
                    'table' => 'tx_news_domain_model_tag',
                    'id_field' => 'uid',
                    'alias_field' => 'title',
                    'addWhereClause' => ' AND NOT deleted',
                    'useUniqueCache' => 1,
                    'useUniqueCache_conf' => array(
                        'strtolower' => 1,
                        'spaceCharacter' => '-'
                    )
                )
            )
        ),
        '24' => 'newsDetailConfiguration', // ID of the page with the news plugin detail view
        #'24' => 'newsTagConfiguration',
        #'24' => 'newsCategoryConfiguration',
    ),
    'postVarSets' => array(
        '_DEFAULT' => array(
            'controller' => array(
                array(
                    'GETvar' => 'tx_news_pi1[action]',
                    'noMatch' => 'bypass'
                ),
                array(
                    'GETvar' => 'tx_news_pi1[controller]',
                    'noMatch' => 'bypass'
                )
            ),
 
            'dateFilter' => array(
                array(
                    'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
                ),
                array(
                    'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
                ),
            ),
            'page' => array(
                array(
                    'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
                ),
            ),
        ),
        // configure filenames for different pagetypes
        'fileName' => array(
            'defaultToHTMLsuffixOnPrev' => 0,
            'acceptHTMLsuffix' => 0,
            '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,
                    ),
                ),
                'output.pdf' => array(
                    'keyValues' => array(
                        'type' => 123,
                    ),
                ),
                'sitemap.xml' => array(
                    'keyValues' => array(
                        'type' => 841132,
                    ),
                ),
 
            ),
        ),
    ),
);
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain2] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain1];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain2]['pagePath']['rootpage_id'] = $rootPageUid2;
// adjust the page id of news detail view for every domain
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain2]['fixedPostVars']['54'] = 'newsDetailConfiguration';
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain3] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain1];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain3]['pagePath']['rootpage_id'] = $rootPageUid3;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain3]['fixedPostVars']['53'] = 'newsDetailConfiguration';
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain4] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain1];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain4]['pagePath']['rootpage_id'] = $rootPageUid4;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain4]['fixedPostVars']['55'] = 'newsDetailConfiguration';
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain5] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain1];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain5]['pagePath']['rootpage_id'] = $rootPageUid5;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain5]['fixedPostVars']['101'] = 'newsDetailConfiguration';