| Administrator 
				 
				Регистрация: 23.08.2003 Адрес: Moscow, Russia 
					Сообщений: 1,926
				 | 
				  
 
			
			сейчас для RealURL уже есть фича, чтобы сделать домен языковым переключателем 
для typo3lab.ru и typo3lab.com сейчас так и сделано
 
	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_regex' => array (
 
 ),
 'preVars' => array(
 
 
 
 
 array(
 'GETvar' => 'no_cache',
 'valueMap' => array(
 'no_cache' => 1,
 ),
 'noMatch' => 'bypass',
 ),
 
 
 
 /*
 array(
 'GETvar' => 'L',
 'valueMap' => array(
 'ru' => '0',
 'en' => '1',
 ),
 //'noMatch' => 'bypass',
 'valueDefault' => 'ru',
 
 ),
 
 */
 
 /*
 array(
 'GETvar' => 'L',
 'valueMap' => array(
 'en' => '1',
 ),
 'noMatch' => 'bypass',
 ),
 */
 
 ),
 
 
 
 'postVarSets' => array(
 '_DEFAULT' => array(
 
 ),
 ),
 
 'fileName' => array(
 'defaultToHTMLsuffixOnPrev'=>0,
 'index' => 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,
 ),
 ),
 ),
 ),
 
 'pagePath' => array(
 
 'type' => 'user',
 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
 // if needed simple URL without sections for each subpage:
 //            'userFunc' => 'EXT:realurl/class.tx_realurl_dummy.php:&tx_realurl_dummy->main',
 'spaceCharacter' => '-',
 'languageGetVar' => 'L',
 'expireDays' => 7,
 'rootpage_id' => 40,
 // to solve crazy problem with not found after clear cache:
 'firstHitPathCache' => '1',
 'segTitleFieldList' => 'tx_realurl_pathsegment,alias,uid',
 // tx_realurl_pathsegment,alias,nav_title,title
 
 
 
 ),
 ),
 
 
 '_DOMAINS' => array(
 'encode' => array(
 array(
 'GETvar' => 'L',
 'value' => '0',
 'ifDifferentToCurrent' => true,
 'useConfiguration' => '_DEFAULT',
 'urlPrepend' => 'http://typo3lab.ru',
 ),
 array(
 'GETvar' => 'L',
 'value' => '1',
 'ifDifferentToCurrent' => true,
 'useConfiguration' => '_DEFAULT',
 'urlPrepend' => 'http://typo3lab.com',
 ),
 ),
 'decode' => array(
 '/\.ru$/' => array(
 'GETvars' => array(
 'L' => '0',
 ),
 'useConfiguration' => '_DEFAULT',
 ),
 '/\.com$/' => array(
 'GETvars' => array(
 'L' => '1',
 ),
 'useConfiguration' => '_DEFAULT',
 ),
 ),
 ),
 );
 
 
 ?>
 |