[TYPO3] Multiple domain setup with realurl

L. Timmers timmers at dia.eur.nl
Thu Apr 10 09:05:57 CEST 2008


I am working on a multiple domain setup with realurl. Every thing look 
fine but there is one little detail not working correct. When i try to 
access the root page of the second domain (sub2.domain.nl) i get a 404 
page not found. When i access a sub page of this domain or add a extra 
slash to the url of the root page (ending up with double slashes) every 
thing works fine.

sub2.domain.nl/ 404
sub2.domain.nl// oke
sub2.domain.nl/test/ oke

This is my localconf setup and both domains have there own domain record 
set:


$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
     'init' => array(
         'enableCHashCache' => 1,
         'appendMissingSlash' => 'ifNotFile',
         'enableUrlDecodeCache' => 0,
         'enableUrlEncodeCache' => 0,
     ),

{...}

     'pagePath' => array(
         'type' => 'user',
         'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
         'rootpage_id' => 372,
         'dontResolveShortcuts' => 1,
         'spaceCharacter' => '_',
         'languageGetVar' => 'L',
         'expireDays' => 3
     ),
);

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.nl'] = 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.nl']['pagePath']['rootpage_id'] 
= 327;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['sub2.domain.nl'] = 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['sub2.domain.nl']['pagePath']['rootpage_id'] 
= 90751;


Does anybody have a clue wat is going wrong here.

Thanks in advance

Lennnert


More information about the TYPO3-english mailing list