[TYPO3-german] RealURL: urls funktionieren, aber Links werden nicht geändert
Dirk Weise
web at rceh.de
Wed Sep 20 19:06:32 CEST 2006
Hallo Liste!
Ich befasse mich heute erstmals mit real url und habe so meine Freude
damit... Google und die vergangenen Mails in dieser Liste haben mir
schon sehr weitergeholfen, aber jetzt stecke ich fest.
Ich habe nach der (scheinbar weit verbreiteten) Anleitung
http://www.tugmuc.de/tugmuc-projekte/realurl-aktivieren-und-konfigurieren.html
realURL soweit installiert und ein Aufruf von z.B.
http://localhost/rceh/rudern/termine bringt auch die erwartete Seite.
Leider ist nun es aber so, daß trotzdem alle Links weiterhin im Format
http://localhost/rceh/index.php?id=xy erscheinen.
Was mache ich falsch?
Ich benutze den danp_realurlconfigurator. Der sagt meine localconf.php
hätte eine ungültige Syntax, aber das sagt er auch bei der
mitgelieferten Standardkonfiguration.....
Weiterhin ist mir aufgefallen, daß die extension unbedingt folgende SQL
Befehle ausführen möchte, obwohl bk_realurl02 schon dem unteren
Statement entspricht.
ALTER TABLE tx_realurl_uniqalias DROP KEY bk_realurl02;
ALTER TABLE tx_realurl_uniqalias ADD KEY bk_realurl02
(tablename,field_alias,field_id,value_alias(230),expire);
Danke für Eure Hilfe!
Dirk
Umgebung:
Typo3/4.0.1
RealURL/1.1.1
Apache/2.2.0 (Win32)
PHP/5.1.1
.htaccess:
RewriteEngine On
RewriteBase /rceh/
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
TS:
//RealURL configuration
config.simulateStaticDocuments = 0
config.baseURL = http://localhost/rceh/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
localconf.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',
'mai' => '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,
),
),
),
),
),
);
More information about the TYPO3-german
mailing list