[TYPO3-english] multidomain project with typo3 4.2.10

De Contardi Riccardo Riccardo.DeContardi at bhuman.it
Wed Jan 13 16:47:53 CET 2010


Hello everybody

 

I'd like to set up a multidomain test project with my Typo3 4.2.10 +
Realurl, and I want to be sure to do everything in the correct way,
so... let's begin:

 

- What I have done till now:

 

1.I've built a page tree like this:

 

 

[ID=1]"Home page" Here begins site 1 (http://typo3.test)

|_page 2

 |_page 12

 |_page 13

 

 

[ID=5]"Home page scuola" Here begins site 2 (http://typo3.test.scuola)

  |_page 51

  |_..     

 

[ID=21] "Home page Universita" Here begins site 3
(http://typo3.test.universita)

  |_page 221 

  |_..

  

 

[ID=1] contains

 - the root template of the site 1

 - Added a domain record: typo3.test

 - TS Setup: config.baseURL = http://typo3.test

 

[ID=5] contains

 - the root template of the site 2

 - Added a domain record: typo3.test.scuola 

 - TS Setup: config.baseURL = http://typo3.test.scuola

 

[ID=21] contains

 - the root template of the site 3

 - Added a domain record: typo3.test.universita 

 - TS Setup: config.baseURL = http://typo3.test.universita

 

 

2. I wrote my realurl config from the article
http://dmitry-dulepov.com/article/realurl-made-easy-part-2.html:

 

$tx_realurl_config = array(

    'init' => array(

        'enableCHashCache' => true,

        'appendMissingSlash' => 'ifNotFile',

        'enableUrlDecodeCache' => true,

        'enableUrlDecodeCache' => true,

        'emptyUrlReturnValue' => '/',

   ),

    'preVars' => array(

    ),

    'postVarSets' => array(

        '_DEFAULT' => array(

       ) ,

    ),

    'pagePath' => array(

        'type' => 'user',

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

        'spaceCharacter' => '-',

        'languageGetVar' => 'L',

        'expireDays' => 3,

   ) ,

);

 

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

    'typo3.test.zani' => $tx_realurl_config,

    //'typo3.test.zani' => 'typo3.test',

    'typo3.test.zani.scuola' => $tx_realurl_config,

    //'typo3.test.zani.scuola' => 'typo3.test.scuola',

    'typo3.test.zani.universita' => $tx_realurl_config,

    //'typo3.test.zani.universita' => 'typo3.test.universita',    

);

 

$TYPO3_CONF_VARS['EXTCONF']['realurl']['typo3.test']['pagePath']['rootpa
ge_id'] = 1;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['typo3.test.scuola']['pagePath'][
'rootpage_id'] = 5;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['typo3.test.universita']['pagePat
h']['rootpage_id'] = 21;

unset($tx_realurl_config);

 

 

**** BTW: ***

 

In the original article, Dmitry wrote:

 

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

    'www.domain1.tld' => $tx_realurl_config,

    'domain1.tld' => 'www.domain1.tld',

    'www.domain2.tld' => $tx_realurl_config,

    'domain1.tld' => 'www.domain2.tld',

);

 

I had to modify it into:

 

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

    'typo3.test' => $tx_realurl_config,

    //'typo3.test' => 'typo3.test',

    'typo3.test.scuola' => $tx_realurl_config,

    //'typo3.test.scuola' => 'typo3.test.scuola',

    'typo3.test.universita' => $tx_realurl_config,

   // 'typo3.test.universita' => 'typo3.test.universita',    

);

 

Is that correct? Without the comments, the T3 BE stops to work... :S

 

 

3. Also, I put in TS Setup of the site1, 2 and 3:

 

config.typolinkCheckRootline = 1

config.typolinkEnableLinksAcrossDomains = 1

 

With these settings everything seems to work, except... the
"cross-domain" links (e.g. from the page 51 to 2 are not
"realurl-aware": they remain:

 

http://typo3.test /index.php?id=2
<http://typo3.test.zani/index.php?id=2> 

 

While "inside" a site, Realurl seems to work

 

Is there something I missed? Do you have any suggestions? 

 

Thank you for your support and best regards

 

**************************************

Riccardo De Contardi

 

B Human Srl - www.bhuman.it
<file:///C:\Documents%20and%20Settings\riccardo.decontardi\Dati%20applic
azioni\Microsoft\Firme%20elettroniche\www.bhuman.it>  

Via Canzio, 15 - 20131 Milano

Tel +39.02 20 23 271 - Fax +39.02 20 240 561

 



Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.




More information about the TYPO3-english mailing list