[TYPO3] Hacked-off with realURL

Ries van Twisk typo3 at rvt.dds.nl
Tue Jan 10 19:08:14 CET 2006


I have this in my localconf.php
Fairly standard:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
         'enableCHashCache' => 1,
         'appendMissingSlash' => 'ifNotFile',
         'enableUrlDecodeCache' => 1,
          'enableUrlEncodeCache' => 1,
          'postVarSet_failureMode' => '',
          ),
    '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,
                )
            ),
        ),
    ),
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 1
    ),
);


I didn't look at the .htaccess yet,
but it seems like that the php in localconf.php is not created correctly.
Try the above, I think it's the same as yours but.......
in any case delete the temp_CACHED files (or hit the red clear cache 
button in the BE)
to make sure that typo3 sees that real URL is added.

Since it is a new site you can savly do this.
Go into mysqladmin and delete all rows that is about realUrl (not sure 
there prefix right now)

cheers,
Ries


>I'm fairly new to typo3 and have been struggling to get most things working from the start.  Anyway now I'm trying to get realURL
>working.  I've followed the documentation and done the what is outlined below... This is based on an example at the wiki site
>http://wiki.typo3.org/index.php/EXT/realurl/manual#More_Working_Samples
>
>All I want to have the urls to simply represent whats in the navigation eg. www.mydomain.tld/products/toilets.html etc... 
>
>All that I get now with the configuration below are some links that are like this www.mydomain.tld/10 or www.mydomain.tld/14 but
>none of them actually work.
>
>Please can anyone help?
>
>Thanks,
>
>Matt
>
>
>This is what I've done:
>
>Added .htaccess file in root folder as follows:
>
>RewriteEngine On
>RewriteRule ^typo3$ - [L]
>RewriteRule ^typo3/.*$ - [L]
>
>RewriteCond %{REQUEST_FILENAME} !-f
>RewriteCond %{REQUEST_FILENAME} !-d
>RewriteCond %{REQUEST_FILENAME} !-l
>RewriteRule .* index.php
>
>
>Added following to the site template:
>
>config.simulateStaticDocuments = 0
>config.baseURL = http://mydomain.co.uk/
>config.tx_realurl_enable = 1
>
>
>And this is what is in my typo3conf/ext/realurl/ext_localconf.php:
>
><?php
>
>$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-Pos
>tProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
>$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMe
>thods-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL'
>;
>
>$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_a
>dditionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
>$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_a
>dditionalTables']['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[cat]',
>),
>),
>'neste' => array(
>array(
>'GETvar' => 'tx_ttnews[pointer]',
>),
>),
>),
>),
>'pagePath' => array(
>'type' => 'user',
>'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->m
>ain',
>'spaceCharacter' => '-',
>'languageGetVar' => 'L',
>'expireDays' => 3
>),
>);
>
>?>
>
>_______________________________________________
>TYPO3-english mailing list
>TYPO3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>  
>




More information about the TYPO3-english mailing list