[TYPO3] Hacked-off with realURL

matt matt at f13.co.uk
Tue Jan 10 17:49:59 CET 2006


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
),
);

?>




More information about the TYPO3-english mailing list