[TYPO3-english] R: multidomain project with typo3 4.2.10
De Contardi Riccardo
Riccardo.DeContardi at bhuman.it
Thu Jan 14 11:29:45 CET 2010
Thanks for the answer
> and also BTW Ii simulatestatic turned off?
Yes, of course.
Cheers
**************************************
Riccardo De Contardi
B Human Srl - www.bhuman.it
Via Canzio, 15 - 20131 Milano
Tel +39.02 20 23 271 - Fax +39.02 20 240 561
-----Messaggio originale-----
Da: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] Per conto di Typo Three
Inviato: giovedì 14 gennaio 2010 8.56
A: TYPO3 English
Oggetto: Re: [TYPO3-english] multidomain project with typo3 4.2.10
Hi,
in the lines mentioned below;
"
------
$tx_realurl_config = array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlDecodeCache' => true,
'emptyUrlReturnValue' => '/',
),
-------- "
there is two " 'enableUrlDecodeCache' => true, " , you can remove one of those.
The below configuration lines;
" ----
$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',
);
---
"
the commented portion can be removed since there is no alias domains; for eg: if there was www.typo3.test and typo3.test domains existing in paged id 1, configuration will be something like below;
" ----
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'www.typo3.test' =>
$tx_realurl_config,
'typo3.test' => 'www.typo3.test',
----"
and also BTW Ii simulatestatic turned off?
config.simulateStaticDocuments = 0
Regards
typo three
http://www.pitsolutions.ch/
----- Original Message ----
From: De Contardi Riccardo <Riccardo.DeContardi at bhuman.it>
To: TYPO3 English <typo3-english at lists.typo3.org>
Sent: Wed, January 13, 2010 9:17:53 PM
Subject: [TYPO3-english] multidomain project with typo3 4.2.10
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.
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
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 responsabilità 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