[TYPO3-dev] RealURL + subdomains problem
Stig Nørgaard Færch
snf at dkm.dk
Thu Jan 28 10:22:42 CET 2010
Hi Søren
Tried a configuration like this:
$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' => 50
),
),
'mydomain.dk' => array(
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'rootpage_id' => 50
),
),
'otherdomain.dk' => array(
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'rootpage_id' => 749
),
)
);
The page id I need the subdomains to hit is 50.
I still have the problem though. I also tried *.mydomain.dk. Only when I
try copenhagen.mydomain.dk, it works for this subdomain.
But I need some sort of a 'catch-all' entry to do what I want...
I guess you thought that _DEFAULT would have done that?
/Stig
btw. see you monday :)
Søren Malling skrev:
> Hi Stig,
>
> In your realurl config (the PHP) file, check if you got a "_DEFAULT"
> array and not only a "www.domain.dk" array. If you only got a
> "domain.dk" array and defined a root_path for that domain, it will not
> be able to tell the rootpath_id for the copenhagen.domain.dk url as
> it's not defined as a realurl config array.
>
> Regards,
>
> Søren
>
> On Wed, Jan 27, 2010 at 11:19 AM, Stig Nørgaard Færch <snf at dkm.dk> wrote:
>> I have an installation with multiple sites.
>> One of these sites needs RealURL - the rest does not. So I enabled realurl
>> only for this site. Unfortunately it still breaks one of the other sites.
>>
>> This site (the first in the pagetree) works in a special way concerning
>> subdomains. If I put in copenhagen.mydomain.dk then it uses 'copenhagen' as
>> a search word, to get records which is related to this location.
>>
>> After I installed RealURL, I get this error:
>> "RealURL error: unable to determine rootpage_id for the current domain."
>>
>> What are my options to solve this problem?
>>
>>
>> Thanks in advance!
>>
>> /Stig
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>
>
>
>
More information about the TYPO3-dev
mailing list