Hallo Forum,
ich möchte meine Typo3 Seite mit schöneren URLs versorgen. Dazu habe ich die Extension realURL installiert und alles nach Anleitung eingerichtet.
Wenn ich meine Seite nun über so eine schöne, neue URL (bspw. http://localhost/test/suche/) aufrufe klappt auch alles, die gewünschte Unterseite öffnet sich. Jedoch werden die Links auf der Seite nicht im neuen Format generiert, so daß bei einem Klick auf der seite wieder das alte häßliche http://localhost/test/index.php?id=suche daraus wird.
Woran kann das wohl liegen? Für Hilfe wäre ich dankbar.
dirk
So sieht meine Konfiguration (aus verschiedenen Anleitungen und howtos zusammengesucht) aus:
In der .htaccess
RewriteEngine On
RewriteBase /test/
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
Im Template-Setup:
config.simulateStaticDocuments = 0
config.baseURL = http://localhost/rcehsite/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
config.absRefPrefix = http://localhost/rcehsite/
Die realurl-Konfiguration in der localconf.php
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
'postVarSet_failureMode'=>'redirect_goodUpperDir',
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 1,
),
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
// goof_photobook parameters
'photobook' => array(
array(
'GETvar' => 'tx_gooffotoboek_pi1[srcdir]'
),
array(
'GETvar' => 'tx_gooffotoboek_pi1[fid]'
),
array(
'GETvar' => 'tx_gooffotoboek_pi1[func]',
'valueMap' => array(
'thumbnails' => 'thumb',
),
),
),
// CAL parameters
'cal'=> array(
array(
'GETvar' => 'tx_cal_controller[view]'
),
array(
'GETvar' => 'tx_cal_controller[getdate]'
),
array(
'GETvar' => 'tx_cal_controller[gettime]'
),
array(
'GETvar' => 'tx_cal_controller[lastview]'
),
array(
'GETvar' => 'tx_cal_controller[type]'
),
array(
'GETvar' => 'tx_cal_controller[category]',
'lookUpTable' => array(
'table' => 'tx_cal_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '_',
),
),
),
array(
'GETvar' => 'tx_cal_controller[uid]',
'lookUpTable' => array(
'table' => 'tx_cal_event',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '_',
),
),
),
array(
'GETvar' => 'tx_cal_controller[gettime]'
),
array(
'GETvar' => 'tx_cal_controller[preview]'
),
),
// NEWS archive parameters
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]' ,
),
array(
'GETvar' => 'tx_ttnews[month]' ,
'valueMap' => array(
'januar' => '01',
'februar' => '02',
'maerz' => '03',
'april' => '04',
'may' => '05',
'juni' => '06',
'juli' => '07',
'august' => '08',
'september' => '09',
'oktober' => '10',
'november' => '11',
'dezember' => '12',
)
),
),
// NEWS pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
// NEWS categories
'select_category' => array (
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
// NEWS articles and searchwords
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[swords]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'index' => array(
'print.html' => array(
'keyValues' => array(
'type' => 98,
),
),
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
'rss091.xml' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf.xml' => array(
'keyValues' => array(
'type' => 102,
),
),
'atom.xml' => array(
'keyValues' => array(
'type' => 103,
),
),
),
),
),
);
php?>
[/quote]