Hallo,
ich hab ein Problem mit meiner RealUrl-Konfiguration. Lokal funktioniert alles super, aber am Webspace hab ich das Problem, dass zwar die Links konfiguriert werden, aber ich dann eine 404 Error-Meldung bekomme.
Der Fehler muss darin liegen, dass Realurl oder die htaccess irgendwie nicht erkennen, dass Typo in einem Verzeichnis liegt bzw. dass ich das noch irgendwo mitteilen muss, aber wo?
Meine .htaccess
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
In der localconf hab ich den Vorschlag von tt_news genommen
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array('_DEFAULT' => array(),
### Add your server name here ###
'***.**.**.***' => array('init' => array('enableCHashCache' => 1,
// 'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
array('GETvar' => 'no_cache',
'valueMap' => array('nc' => 1,
),
'noMatch' => 'bypass',
),
array('GETvar' => 'L',
'valueMap' => array('dk' => '1',
'de' => '2',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
### Add the id of the rootpage in your pagetree ###
'rootpage_id' => 1,
),
'fixedPostVars' => array(),
'postVarSets' => array('_DEFAULT' => array(
// archive
'period' => array(
array('condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]' ,
// 'valueMap' => array(
// )
),
array('GETvar' => 'tx_ttnews[pL]' ,
),
array('GETvar' => 'tx_ttnews[arc]' ,
'valueMap' => array('archived' => 1,
'non-archived' => -1,
)
),
),
// pagebrowser
'browse' => array(
array('GETvar' => 'tx_ttnews[pointer]',
),
),
// select news by category
'select' => array (
array('GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array('table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array('strtolower' => 1,
),
),
),
),
// backPid link
// 'back_to' => array(
// array('GETvar' => 'tx_ttnews[backPid]',
// 'lookUpTable' => array('table' => 'pages',
// 'id_field' => 'uid',
// 'alias_field' => 'title',
// 'addWhereClause' => ' AND NOT deleted',
// 'useUniqueCache' => 1,
// 'useUniqueCache_conf' => array('strtolower' => 1,
// 'spaceCharacter' => '-',
// ),
// ),
// ),
// ),
// news title
'article' => array(
array('GETvar' => 'tx_ttnews[backPid]',
),
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]'
),
),
),
),
'fileName' => array('index' => array('rss.xml' => array('keyValues' => array('type' => 100,
),
),
// 'index.html' => array(
// 'keyValues' => array(),
// ),
),
'defaultToHTMLsuffixOnPrev' => 1,
),
)
);
Ich weiß nicht, ob das was nützt, aber ich hab einige Tests mit einem einfachen redirect per htacess gemacht, und wenn ich in die htaccess schreibe
redirect 301 / http://www.bla.org/
,so komm ich auf die Seite http://www.bla.org/VERZEICHNIS/VERZEICHNIS => verzeichnis/verzeichnis ist ident mit dem pfad, in dem meine installation liegt
eine korrekte Weiterleitung passiert nur mit
redirect 301 /VERZEICHNIS/VERZEICHNIS/ http://www.bla.org/
Wer hat hier einen Tipp für mich, wäre echt wahnsinnig toll!!
danke!
georg