[TYPO3] real url - multiple domains

PEF xx at xx.xx
Thu Jul 12 09:14:10 CEST 2007


Hi Dmitry,

There are domain records for both domains and they resides on page 1 and 
page 168 as they should.

The baseUrl is set for both domains:
config.simulateStaticDocuments = 0
config.baseURL = http://itk-intern-ny/
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.linkVars = L
config.prefixLocalAnchors = all
config.sendCacheHeaders=1


config.simulateStaticDocuments = 0
config.baseURL = http://info-ny/
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.linkVars = L
config.prefixLocalAnchors = all
config.sendCacheHeaders=1


Here is my localconf.php except for the prevar-, postvar- and filename part:
$rootPID = array (
    'itk-intern-ny' => '1',
    'info-ny' => '168'
);

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
	          'doNotRawUrlEncodeParameterNames' => 1,
	          'enableCHashCache' => 1,
	          'enableUrlEncodeCache' => 0,
	          'enableUrlDecodeCache' => 0,
                   'appendMissingSlash' => 1,
	        ),
         'preVars' => array(
          ...
          ...
         ),
         'fileName' => array (
         ...
         ...
         ),
         'postVarSets' => array(
         ...
         ...
         ),
         'pagePath' => array(
	         'type' => 'user',
	         'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		 'spaceCharacter' => '-',
		 'languageGetVar' => 'L',
		 'expireDays' => 3,
                  'firstHitPathCache' => 1,
                  'rootpage_id' => $rootPID[$_SERVER['HTTP_HOST']]
	     ),
);

I've also tried this minimized version - still with no luck:
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array (
    '_DEFAULT' => array(
        'pagePath' => array(
            'type' => 'user',
            'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'rootpage_id' => 1
        ),
    ),
    'info-ny' => array (
       'pagePath' => array(
            'type' => 'user',
            'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'rootpage_id' => 168
        ),
    )
);

Regards
Peter


Dmitry Dulepov skrev:
> Hi!
> 
> PEF wrote:
>> Anyone who can tell me what goes wrong?
> 
> You need to do three things:
> - post your realurl configuration (you can skip postVar* and preVars)
> - check if you have domain records on corresponding pages
> - check if you have config.baseURL in TS template for each site
> 


More information about the TYPO3-english mailing list