[TYPO3] Problems with realurl and different domains

Bernhard Kraft kraftb at kraftb.at
Tue Sep 4 19:01:15 CEST 2007


Andreas Balzer wrote:

> What am I'm doing wrong?

What is your realURL config in typo3conf/localconf.php looking like ?


I have one for a multi-domain setup which looks like the following:


The "main" setup ... and especially look at the "per-site" setup below:

---------------------
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = Array(
   'init' => array(
     'appendMissingSlash' => 'ifNotFile',
     'enableCHashCache' => 1,
     'rootPageID' => 5,
   ),
   'preVars' => Array(
     Array(
       'GETvar' => 'L',
       'valueMap' => Array(
         'en' => '1',
       ),
       'noMatch' => 'bypass',
     ),
   ),
   'filename' => Array(
     'index' => Array(
       'page.html' => Array(
         'keyValues' => Array(
           'type' => 0,
         ),
       ),
       '_DEFAULT' => Array(
         'keyValues' => Array(
         ),
       ),
     ),
   ),
   'postVarSets' => Array(
     '_DEFAULT' => Array(
       'print' => Array(
         Array(
           'GETvar' => 'print',
         ),
       ),
       'nid' => Array(
         Array(
           'GETvar' => 'tx_ttnews[tt_news]',
         ),
       ),
.....
}
----------------------



per site setup:

------------------------
$TYPO3_CONF_VARS['EXTCONF']['realurl']['doris.viadonau.mmc.at'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['doris.viadonau.mmc.at']['init']['rootPageID'] = 3;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['doris.viadonau.mmc.at']['pagePath']['rootpage_id'] = 3;
------------------------

so you will need to make a copy of the "_DEFAULT" realURL entry - with the name of your other domain ... and then
modify the "init/rootPageID" parameter and "pagePath/rootpage_id" parameter to the correct values ...

at least that worked for me ...



greets,
Bernhard


More information about the TYPO3-english mailing list