seit vielen Wochen habe ich das Problem, daß das "Speaking URLS" immer nur für meine erste Domain auf meiner TYPO3-Installation funktioniert.
werden die ID-Nummern der Seiten durch den PageTitle ersetzt, nicht aber für die anderen Domains/Auftritte. Teilweise werde für diese noch nicht einmal statische Seiten simuliert oder es werden statische Seiten
Homepage.
ist ja alles Ok.
außerdem werden die IDs nicht durch die Seitentitel ersetzt (=Speaking URLs).
nicht einmal statische Seiten simuliert.
nicht resignieren......
PHP-Code:
<?php
// Activate script Hook, normaly already done in
ext/realurl/ext_localconf.php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][]
=
'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][]
=
'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
// script Hook for clear all cache, normaly already done in
ext/realurl/ext_localconf.php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']
['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']
['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .=
',tx_realurl_pathsegment,alias,nav_title,title';
// realurl config
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
// 'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
//match &no_cache=1 with path prefix /nc
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
//multiple language matching L=2 is replaced by /dk
//value are user defiened depending of the order you've
inserted your
//alternative language in TYPO3. See sys_language table
for ID
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => 3,
// 'english' => '3',
'de' => 0,
// 'deutsch' => '0',
),
//'noMatch' => 'bypass',
'valueDefault' => 'de',
),
),
// use extended page name rendering
// page names are converted to readalbe
page/sub-page/sub-sub-page.html
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '_',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 27,
//
'encodeTitle_userProc'=>'EXT:realurl/tx_realurl_encodeTitle_userProc.php:&user_encodeDates',
),
'fixedPostVars' => array(),
// match extension parameter
'postVarSets' => array(
'_DEFAULT' => array(
// archive
'period' => array(
array(
'condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]' ,
// 'valueMap' => array(
//
// )
),
array(
'GETvar' => 'tx_ttnews[pL]' ,
// 'valueMap' => array(
//
// )
),
array(
'GETvar' => 'tx_ttnews[arc]' ,
'valueMap' => array(
'archived' => 1,
'non-archived' => -1,
)
),
),
// pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
'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' => '_',
// ),
// ),
// ),
// ),
'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]'
),
),
),
),
// map some type to file name: rss.xml = &typo=100
'fileName' => array(
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
// 'index.html' => array(
// 'keyValues' => array(),
// ),
),
// add .html suffix to the end of the path generated
'defaultToHTMLsuffixOnPrev' => 1,
),
),
//Fuer QMKonzepte
'www.bellowski.de' => array(
'init' => array(
'enableCHashCache' => 1,
// 'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
//match &no_cache=1 with path prefix /nc
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
//multiple language matching L=2 is replaced by /dk
//value are user defiened depending of the order you've
inserted your
//alternative language in TYPO3. See sys_language table
for ID
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => 3,
// 'english' => '3',
'de' => 0,
// 'deutsch' => '0',
),
//'noMatch' => 'bypass',
'valueDefault' => 'de',
),
),
// use extended page name rendering
// page names are converted to readalbe
page/sub-page/sub-sub-page.html
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '_',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 87,
//
'encodeTitle_userProc'=>'EXT:realurl/tx_realurl_encodeTitle_userProc.php:&user_encodeDates',
),
'fixedPostVars' => array(),
// match extension parameter
'postVarSets' => array(
'_DEFAULT' => array(
// archive
'period' => array(
array(
'condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]' ,
// 'valueMap' => array(
//
// )
),
array(
'GETvar' => 'tx_ttnews[pL]' ,
// 'valueMap' => array(
//
// )
),
array(
'GETvar' => 'tx_ttnews[arc]' ,
'valueMap' => array(
'archived' => 1,
'non-archived' => -1,
)
),
),
// pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
'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' => '_',
// ),
// ),
// ),
// ),
'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]'
),
),
),
),
// map some type to file name: rss.xml = &typo=100
'fileName' => array(
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
// 'index.html' => array(
// 'keyValues' => array(),
// ),
),
// add .html suffix to the end of the path generated
'defaultToHTMLsuffixOnPrev' => 1,
),
),
//Fuer Bellowski
'www.qm-konzepte.de' => array(
'preVars' => array(
'0' => array(
'GETvar' => 'L',
'valueMap' => array(
'de' => 0,
'en' => 3,
),
'valueDefault' => 'de',
),
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => '1',
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '_',
'languageGetVar' => 'L',
'expireDays' => 3,
'rootpage_id' => 140,
),
'fixedPostVars' => array(
),
)
);
?>
Vielen Dank im Voraus.