[TYPO3-english] RealUrl - Multi Domain, Multi Language Problem

Christian Ebert ebert.chris at gmail.com
Wed Jan 5 10:22:33 CET 2011


Was not able to fix the problem. I am using a hook which fixes wrong domains
in page output. Not nice but works

 

These are the hooks

// hook is called after Caching!

$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-
output'][]  
// hook is called before Caching!
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-
all'][] 

 

Von: Christian Ebert [mailto:ebert.chris at gmail.com] 
Gesendet: Mittwoch, 29. Dezember 2010 22:21
An: 'typo3-english at lists.typo3.org'
Betreff: RealUrl - Multi Domain, Multi Language Problem

 

I have a multi domain multi language configuration with the following
encoding problem when doing cross domain links: 

Root
    Site1 (german => de123.actano-contact.de / englisch
en.actano-contact.de)
        - Page 1: de => firma, en =>company
        - Page 2: de => kontakt, en => contact
    Site 2 (german => rplan-e3.de / englisch rplan-e3.com)



When trying to link from site 2 to page 2 on site 1 I do not get the right
domain prependend. Always de123.actano-contact.de (it is the first domain
record for Site1) is prependend no matter which language is active on site
2. The path part after the domain is correctly encoded depending on the
language: 


User is on rplan.com. He sees
- de123.actano-contact.de/contact  (=> should be
en.actano-contact.de/contact)

User is on rplan.de. He sees
- de123.actano-contact.de/kontakt => ok

- Site 1 and 2 are configured "is_root" in page properties
- I have added in typoscript setup:
     config.typolinkEnableLinksAcrossDomains = 1
     config.typolinkCheckRootline = 1

 

The problem seems to be the "encode" array in ['_Domains']. I can not
distinguish there between different domains. Any idea how I can solve my
problem?

 

Here is the realurl Configuration:

 

<?php

 

 

 

$ac_preVars = array(

  array(

    'GETvar' => 'L',

    'valueMap' => array(),

    'noMatch' => 'bypass'

  )

);

 

 

 

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(

                    'pagePath' => array(

                               'type' => 'user',

                               'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',

                               'spaceCharacter' => '-',

                               'languageGetVar' => 'L',

                               'expireDays' => 1,

        'excludePageIds'=> 158,

                               'firstHitPathCache' => 1

                ),

 

                'fileName' => array(

                               'index' => array(

                               ),

                ),

);

 

 

 

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'] = $ac_preVars;

 

 

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.rplan-e3.de'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] ;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.rplan-e3.de']['pagePath']['rootp
age_id']=9;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.rplan-e3.com']=$TYPO3_CONF_VARS[
'EXTCONF']['realurl']['www.rplan-e3.de'];

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.de123.actano-contact.de'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] ;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.de123.actano-contact.de']['pageP
ath']['rootpage_id']=1;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.en.actano-contact.de']=$TYPO3_CO
NF_VARS['EXTCONF']['realurl']['www.de123.actano-contact.de'];

 

 

 

 

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(

'encode' => array(

     array(

         'GETvar' => 'L',

         'value' => '',

        // 'ifDifferentToCurrent' => true,

         'useConfiguration' => 'www.de123.actano-contact.de',

         'urlPrepend' => 'http://www.de123.actano-contact.de', 

     ),

     array(

         'GETvar' => 'L',

         'value' => '0',

         'useConfiguration' => 'www.de123.actano-contact.de',

         'urlPrepend' => 'http://www.de123.actano-contact.de', 

     ),

     array(

         'GETvar' => 'L',

         'value' => '1',

         'useConfiguration' => 'www.en.actano-contact.de',

         'urlPrepend' => 'http://www.en.actano-contact.de', 

     ),

 

),

'decode' => array(

 

     'www.de123.actano-contact.de' => array(

         'GETvars' => array(

             'L' => '',

         ),

         'useConfiguration' => 'www.de123.actano-contact.de',

     ),

     'www.de123.actano-contact.de' => array(

         'GETvars' => array(

             'L' => '0',

         ),

         'useConfiguration' => 'www.de123.actano-contact.de',

     ),

    //Domains immer mit und ohne www. angeben

     'www.en.actano-contact.de' => array(

             'GETvars' => array(

             'L' => '1',

         ),

         'useConfiguration' => 'www.en.actano-contact.de',

     ),

 

 

     'www.rplan-e3.de' => array(

         'GETvars' => array(

             'L' => '',

         ),

         'useConfiguration' => 'www.rplan-e3.de',

     ),

     'www.rplan-e3.de' => array(

         'GETvars' => array(

             'L' => '0',

         ),

        'useConfiguration' => 'www.rplan-e3.de',

     ),

    //Domains immer mit und ohne www. angeben

     'www.rplan-e3.com' => array(

             'GETvars' => array(

             'L' => '1',

         ),

         'useConfiguration' => 'www.rplan-e3.com',

     ),

                ),

); 



More information about the TYPO3-english mailing list