Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /***********************************************************************
- /TypoScript settings for multi-language multi-domain setup
- /**********************************************************************/
- /*
- // Set desired language according to calling domain
- [globalVar = GP:L=0] OR [globalString = IENV:HTTP_HOST = de.domain.de]
- config {
- sys_language_uid = 0
- language = de
- locale_all = de_DE
- }
- [global]
- [globalVar = GP:L=3] OR [globalString = IENV:HTTP_HOST = en.domain.de]
- config {
- sys_language_uid = 3
- language = en
- locale_all = en_EN
- }
- [global]
- // Set desired baseURL according to calling domain
- [globalString = ENV:HTTP_HOST=de.domain.de]
- config.baseURL = http://de.domain.de/
- [global]
- [globalString = ENV:HTTP_HOST=en.domain.de]
- config.baseURL = http://en.domain.de/
- [global]
- */
- /***********************************************************************
- /RealURL settings for multi-language multi-domain setup
- /**********************************************************************/
- $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
- '_DEFAULT' => array(
- 'init' => array(
- 'enableCHashCache' => 1,
- 'respectSimulateStaticURLs' => 1,
- 'enableUrlDecodeCache' => 1,
- 'enableUrlEncodeCache' => 1,
- 'appendMissingSlash' => 'ifNotFile',
- 'postVarSet_failureMode' => 'redirect_goodUpperDir'
- ),
- 'preVars' => array (
- '0' => array (
- 'GETvar' => 'no_cache',
- 'valueMap' => array (
- 'nc' => '1'
- ),
- 'noMatch' => 'bypass'
- ),
- '1' => array (
- 'GETvar' => 'L',
- 'valueMap' => array (
- 'de' => '0',
- 'nl' => '1',
- 'fr' => '2',
- 'en' => '3'
- ),
- 'valueDefault' => 'de',
- 'noMatch' => 'bypass',
- ),
- ),
- 'redirects' => array(),
- 'pagePath' => array(
- 'type' => 'user',
- 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
- 'rootpage_id' => 2,
- 'spaceCharacter' => '-',
- 'languageGetVar' => 'L',
- 'segTitleFieldList' => 'nav_title,title',
- 'disablePathCache' => 1,
- 'excludePageIds' => null,
- 'expireDays' => '7'
- ),
- 'fixedPostVars' => array(),
- 'postVarSets' => array(
- '_DEFAULT' => array(
- 'browse' => array (
- '0' => array (
- 'GETvar' => 'tx_ttnews[pointer]'
- ),
- ),
- 'aktuell' => array(
- '0' => 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' => '-',
- ),
- ),
- ),
- '1' => array (
- 'GETvar' => 'tx_ttnews[swords]',
- ),
- '2' => array (
- 'GETvar' => 'tx_ttnews[backPid]',
- ),
- ),
- 'suche' => array(
- array(
- 'GETvar' => 'tx_indexedsearch[ext]',
- 'valueMap' => array(
- 'einfach' => 0,
- 'erweitert' => 1,
- ),
- ),
- ),
- 'galerie' => array(
- array(
- 'GETvar' => 'tx_chgallery_pi1[pointer]',
- ),
- array(
- 'GETvar' => 'tx_chgallery_pi1[dirtitle]',
- ),
- array(
- 'GETvar' => 'tx_chgallery_pi1[single]',
- ),
- array(
- 'GETvar' => 'tx_chgallery_pi1[ceid]',
- ),
- ),
- 'account' => array(
- array(
- 'GETvar' => 'tx_srfeuserregister_pi1[cmd]',
- ),
- ),
- ),
- ),
- 'filename' => array(
- 'index' => array(
- 'rss-091.xml' => array(
- 'keyValues' => array(
- 'type' => '400',
- ),
- ),
- 'rss-2.xml' => array(
- 'keyValues' => array(
- 'type' => '401',
- ),
- ),
- 'rdf.xml' => array(
- 'keyValues' => array(
- 'type' => '402',
- ),
- ),
- 'atom.xml' => array(
- 'keyValues' => array(
- 'type' => '403',
- ),
- ),
- 'print.html' => array('keyValues' => array('type' => 98)),
- ),
- ),
- ),
- '_DOMAINS' => array(
- 'encode' => array(
- array(
- 'GETvar' => 'L',
- 'value' => '0',
- 'ifDifferentToCurrent' => true,
- 'useConfiguration' => '_DEFAULT',
- 'urlPrepend' => 'http://de.domain.de'
- ),
- array(
- 'GETvar' => 'L',
- 'value' => '3',
- 'ifDifferentToCurrent' => true,
- 'useConfiguration' => '_DEFAULT',
- 'urlPrepend' => 'http://en.domain.de'
- )
- ),
- 'decode' => array(
- 'de.domain.de' => array(
- 'GETvars' => array(
- 'L' => '0',
- ),
- 'useConfiguration' => '_DEFAULT'
- ),
- 'en.domain.de' => array(
- 'GETvars' => array(
- 'L' => '3',
- ),
- ' useConfiguration' => '_DEFAULT'
- ),
- ),
- ),
- );
- $TYPO3_CONF_VARS['EXTCONF']['realurl']['de.domain.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
- $TYPO3_CONF_VARS['EXTCONF']['realurl']['en.domain.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement