[TYPO3] REALURL multi-domain config with segments
PEF
xx at xx.xx
Mon Jul 9 15:26:17 CEST 2007
Had a similar problem and added:
'firstHitPathCache' => 1
to the pagePath section
Regards
Peter Falk
Paul Hassinger skrev:
> Currently, I am having issues in setting up Realurl with multiple
> domains.
>
> I will call main site: www.abc.com and subsites: www.abc.com/entity1 or
> www.abc.com/entity2
>
> The urls are correctly created and point to the correct paths...
> however, when viewing under entity1 or entity2, I get the error: Segment
> "entity1" was not a keyword for a postVarSet as expected! I am presuming
> it's not finding the rootpage_id correctly or something of that nature.
> I've followed the posts and documentation from others, unable to figure
> out how to get this working. I have the entity1 and entity 2 root pages
> set up as domains...
>
> For example, www.abc.com/news works fine, but www.abc.com/entity1/news I
> get the above error...
>
> here is my realurl configuration:
>
> <?php
>
> $realurl_default_config = array(
>
> 'init' => array(
> 'appendMissingSlash' => 1,
> 'enableCHashCache' => 1,
> 'enableUrlDecodeCache' => 0,
> 'enableUrlEncodeHash' => 0,
> // 'postVarSet_failureMode' => 'redirect_goodUpperDir',
> //'enableDomainLookup' => 0
> ),
>
> 'redirects' => array(
> ),
>
> 'preVars' => array(
> ),
>
> 'pagePath' => array(
> 'type' => 'user',
> 'userFunc' =>
> 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
> 'spaceCharacter' => '-',
> 'languageGetVar' => 'L',
> 'expireDays' => 1,
> 'disablePathCache' => 0,
> //'rootpage_id' => 7
> ),
>
> 'fixedPostVars' => array(
> ),
>
> 'postVarSets' => array(
> ),
>
> 'fileName' => array(
> ),
>
> );
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array (
> '_DEFAULT' => $realurl_default_config,
> );
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.abc.com'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.abc.com']['pagePath']['rootp
> age_id'] = 7;
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.abc.com/entity1'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.abc.com/entity1']['pagePath'
> ]['rootpage_id'] = 446;
>
> //$TYPO3_CONF_VARS["FE"]["pageNotFound_handling"] =
> 'READFILE:fileadmin/template/main/notfound.html';
> //$TYPO3_CONF_VARS["SYS"]["enable_DLOG"] = 'true';
>
> ?>
>
> Thanks,
> Paul
>
>
More information about the TYPO3-english
mailing list