[TYPO3] realURL - what is wrong with my configuration

racco raczek at open.infi.pl
Mon Mar 13 15:14:44 CET 2006


hello!

I followed the instructions in RealURL manual but the extensions doesn't 
work as it should. I think it is something wrong with this rewrating 
through .htaccess because all links are generated properly but they lead 
to 404 page not exist.

Here's what I have:
1) I installed RealURL
2) In my setup I have:
	config.simulateStaticDocuments = 0
	config.baseURL = 1
	config.tx_realurl_enable = 1

3) In localconf.php I have:

$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
     ),
     'preVars' => array(
         array(
             'GETvar' => 'no_cache',
             'valueMap' => array(
                 'no_cache' => 1,
             ),
             'noMatch' => 'bypass',
         ),
     array(
         'GETvar' => 'L',
         'valueMap' => array(
             'no' => '1',
         ),
         'noMatch' => 'bypass',
         ),
     ),
     'fileName' => array (
         '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
     ),
);


4) in .htaccess I have:


### Begin: Rewrite stuff ###

# Enable URL rewriting
RewriteEngine On


RewriteRule 
^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ 
- [L]

RewriteRule ^typo3$ typo3/index_re.php [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l


RewriteRule .* index.php [L]



thx for your advices
racco




More information about the TYPO3-english mailing list