[TYPO3] Real URL rootpage_id

Dmitry Dulepov typo3 at fm-world.ru
Wed Dec 28 08:50:07 CET 2005


Hi!

ben van 't ende [netcreators] wrote:
> We have several TYPO3 installations with many (and I mean many) subdomains. In
> what way can you separately define the rootpage_id, without having to copy the
> whole RealURL config for every subsite? It makes sense to me to have some
> general RealURL configuration and to specify the rootpage separately for every
> subdomain. By the way even with doing it that way the rootpage_id does not seem
> to do what it should be doing.

This is what I do:

<?
    $realurl_template = array(
	    'init' => array(
...
	    ),
	    'preVars' => array(
...
	    ),
	    'postVarSets' => array(
...
	    ),
	    'pagePath' => array(
	        'type' => 'user',
	        'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
	        'spaceCharacter' => '-',
		'languageGetVar' => 'L',
		'excludePageIds' => '4,11,56'
	    ),
	    'fileName' => array(
...
	    )
    );
    $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'my.domain.com' => $realurl_template,
	'his.domain.com' => $realurl_template
    );

$TYPO3_CONF_VARS['EXTCONF']['realurl']['my.domain.com']['pagePath']['rootpage_id']
= 1283;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['his.domain.com']['pagePath']['rootpage_id']
= 1282;

    unset($realurl_template);
?>

> I still can't use same folder names like /404
> with different subdomains for instance.

For me it does not work too. It is in my list to look to it because this
is really annoying.

Dmitry.



More information about the TYPO3-english mailing list