Administrator
Регистрация: 23.08.2003
Адрес: Moscow, Russia
Сообщений: 1,926
|
Цитата:
Сообщение от pomotom
'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,uid' мне нравится больше. И для новостей - только uid.
|
из за nav_title - все равно можем получить vot-takoy-uzasniy-text-v-url
некрасиво это имхо
Но если язык англ или немецкий - то наверное надо
'tx_realurl_pathsegment,alias,nav_title,title'
Цитата:
Сообщение от pomotom
'postVarSet_failureMode'=>'redirect_goodUpperDir' - для СЕО-эдишен вроде не катит? 404 ж не отработается. Так что 'postVarSet_failureMode'=>'' и редирект на скрипт с выделением домена (для многодоменного дерева) и перенаправлением на страницу с картой сайта.
|
да, корректная 404 - это важно... я долго возился с этим на одном сайте
в итоге там сейчас в localconf.php
PHP код:
#$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = "http://xxxxxx.ch/page-not-found/";
//$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = "/index.php?id=51"; //$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/?id=51'; //$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'READFILE:fileadmin/404.html'; //$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'REDIRECT:index.php?id=51'; $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'REDIRECT:/404-error/'; $TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] = 'HTTP/1.0 404 Not Found';
PHP код:
<?php
/** * RealURL configuration */ $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
// Default host '_DEFAULT' => array( // General configuration 'init' => array( 'doNotRawUrlEncodeParameterNames' => 0, 'enableCHashCache' => 1, 'respectSimulateStaticURLs' => 0, 'appendMissingSlash' => ifNotFile, 'adminJumpToBackend' => 0, 'enableUrlDecodeCache' => 1, 'enableUrlEncodeCache' => 1, // 'postVarSet_failureMode'=>'redirect_goodUpperDir', ), // Redirections 'redirects' => array(), // Pre variables 'preVars' => array( /* this is not recommended for SEO // No cache array( 'GETvar' => 'no_cache', 'valueMap' => array( 'no_cache' => 1, ), 'noMatch' => 'bypass', '_DEFAULT' => array( 'type' => 'notfound' ), ), */
), // Transformation method 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 'spaceCharacter' => '-',
// to solve crazy problem with not found after clear cache:
'firstHitPathCache' => '1', 'languageGetVar' => 'L', 'expireDays' => 3, 'rootpage_id' => '1', ), // Fixed post variables 'fixedPostVars' => array(), // Post variables 'postVarSets' => array( '_DEFAULT' => array( // news archive parameters 'archive' => array( array( 'GETvar' => 'tx_ttnews[year]' , ), array( 'GETvar' => 'tx_ttnews[month]' , 'valueMap' => array( 'january' => '01', 'february' => '02', 'march' => '03', 'april' => '04', 'may' => '05', 'june' => '06', 'july' => '07', 'august' => '08', 'september' => '09', 'october' => '10', 'november' => '11', 'december' => '12', ) ), ), // news pagebrowser 'browse' => array( array( 'GETvar' => 'tx_ttnews[pointer]', ), ), // news categories 'year' => 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', 'languageGetVar' => 'L', 'languageExceptionUids' => '', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), array( 'GETvar' => 'tx_ttnews[swords]', ), ), // PhotoBook 'photobook' => array( array( 'GETvar' => 'tx_gooffotoboek_pi1[srcdir]' ), array( 'GETvar' => 'tx_gooffotoboek_pi1[fid]' ), array( 'GETvar' => 'tx_gooffotoboek_pi1[func]', 'valueMap' => array( 'thumbnails' => 'thumb', ), ), ), ), ), // File names 'fileName' => array( 'defaultToHTMLsuffixOnPrev' => 0, 'index' => array( //'index.html' => array( // 'keyValues' => array(), //), '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, ), ), 'print.html' => array( 'keyValues' => array ( 'print' => 1, ), ), 'print.pdf' => array( 'keyValues' => array ( 'type' => 123, ), ), ), ), ), ); ?>
насчет языковых версий сайта и многодоменных конфигураций - есть настройки, что будет русский на домене
xxxx.ru
и англ на домене
xxxx.com
|