[TYPO3] RealUrl - multisite links and baseurl / suffix
Daniel Huf
puffi666 at gmail.com
Thu Jun 19 11:31:37 CEST 2008
Hi Dmitry,
Hope you're doing well since the T3DD08
Thanks for the reply.
I tried the "link accross domain" and it works like a charm, but I need
to have the "domain" entry in the root page of the sub site in the page
tree else I don't get any "baseurl" even if it's set in the page.
mod rewrite is activated, but I have no idea how to redirect it to the
right place without having to hard code it into the .htaccess
I even changed the 404 error page to redirect to the right site, but I'd
like to find a better way.
In the realurl_conf.php is this right to do it that way? And is there a
way of not copying the DEFAULT to the sub sites because most of the
configuration in the same apart the "'rootpage_id' => '3'," ?
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'www.dhuf.com' => '_DEFAULT',
'global.dhuf.com' => '_DEFAULT',
'localhost' => '_DEFAULT',
'127.0.0.1' => '_DEFAULT',
'www.dhuf.ch' => 'switzerland',
'ch.dhuf.com' => 'switzerland',
'www.dhuf.com/suisse/' => 'switzerland',
'www.dhuf.com/schweiz/' => 'switzerland',
'www.dhuf.com/switzerland/' => 'switzerland',
'_DEFAULT' =>
array (
...
),
'switzerland' =>
array (
...
),
);
Thanks again
Daniel
Dmitry Dulepov [typo3] wrote:
> Hi!
>
> Daniel Huf wrote:
>> I have a main website and two different sub sites (to simplify let's
>> say Switzerland and China).
>>
>> First I'd like to use a global www.domain.com with a suffix
>> /Switzerland/, but I couldn't manage it. All I was able to do is
>> adding the domains in the different main pages like ch.domain.com. I
>> tried also to forward the other domains like www.domain.ch to
>> www.domain.com/switzerland/ again I managed it with the baseurl to
>> ch.domain.com
>
> You need mod_rewrite redirects.
>
>> Do I have to manage a different configuration in the realurl_conf.php
>> for each of them? is the " 'rootpage_id' => '27', " mandatory?
>
> Yes, it is mandatory in multidomain environment. Domains should not be
> nested in the page tree.
>
>> I also tried to make a drop down menu in the global site for the
>> registering on each sub sites, but how is it possible to create a
>> different "baseurl" for each link with realurl?
>
> There is a new "link across domains" feature. It will help. Check
> "Pending documentation" on the wiki, "config" section for details.
>
More information about the TYPO3-english
mailing list