[TYPO3] realurl
Artiom Lunev
artiom1st at yahoo.com
Thu Jan 12 13:39:48 CET 2006
thanks, it was the problem with .htaccess file.
but now I have another problem. my setup works only on one of my domains
(test3 see below).
I think something wrong in localconf.php.
because in test2 and in test1 websites this error is shown when I'm
clicking on the link:
Error. Reason: Segment "en" was not a keyword for a postVarSet as expected!
this is the realurl part of it:
//
// RealURL configuration.
//
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache']
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache']
= 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 0,
'enableUrlEncodeHash' => 0,
'appendMissingSlash' =>'ifNotFile'
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '0',
'fr' => '4',
'ja' => '5',
),
'valueDefault' => 'en',
),
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'backend.php' => array(
'keyValues' => array (
'type' => 100,
)
),
'print' => array(
'keyValues' => array(
'type' => 98,
)
),
),
),
'postVarSets' => array(
'_DEFAULT' => array (
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
'category' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'neste' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
),
),
'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']['linux-dev/test1'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['linux-dev/test1']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['linux-dev/test2'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['linux-dev/test2']['pagePath']['rootpage_id']
= 32;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['linux-dev/test3'] =
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['linux-dev/test3']['pagePath']['rootpage_id']
= 100;
Regards,
Artiom.
ben van 't ende [netcreators] wrote:
> Christoph Neuroth wrote:
>> Hey Artiom,
>>
>> On Wednesday 11 January 2006 08:54, Artiom Lunev wrote:
>>
>>> I have a problem with realurl. I have 3 domains in one installaion of
>>> typo (3.8.0). They work ok without realurl, I installed it and my links
>>> on home page look like I want (for example:
>>> http://linux-dev/test1/about-us.html). But when I click on it, it
>>> results in error 404 (file not found).
>>> what might be the problem?
>> Looks like have you haven't activated apaches URL rewriting. So Typo3
>> generates the realurl-links, but your web server can't handle them... See
>> realurl documentation on how to activate mod_rewrite...
>
> http://typo3.org/documentation/document-library/realurl/
>
> gRTz
>
> ben
More information about the TYPO3-english
mailing list