Hi, TYPO3 4.4.4 and realurl 1.11.1
I try to set multidomain multi language one tree site with realurl so that certain domain goes to certain language and shows the address with that language without the language path indicator, example: In default language (Finnish): www.domain.fi/osoitepolku/sivu and in English (lang 1) www.domain.com/path/page but now what I get in English is: www.domain.com/osoitepolku/sivu The domain is right but paht is in Finnish. The proper address www.domain.com/path/page gets you to the right page also, but it doesn't come there in the address field as default. I've followed instructions on: http://dmitry-dulepov.com/article/realurl-separate-language-domains-in-an-easy-way.html and http://pastebin.com/PiEXJVF5 Here is my realurl setup, and sorry, there are extra parts, like news and print version, in case some error that escaped mine catches your eyes. ## realurl setup start $RootPID = array( 'www.domain.fi' => '1', 'www.domain.com' => '1', ); $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'init' => array( 'enableCHashCache' => 1, 'appendMissingSlash' => 'ifNotFile', 'enableUrlDecodeCache' => 1, 'enableUrlEncodeCache' => 1, 'respectSimulateStaticURLs' => 0, 'postVarSet_failureMode' => 'redirect_goodUpperDir', ), 'redirects' => array(), 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 'spaceCharacter' => '-', 'languageGetVar' => 'L', 'expireDays' => 0, 'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']], 'segTitleFieldList' => '', 'disablePathCache' => 0, 'firstHitPathCache' => 1, 'autoUpdatePathCache' => 0, 'dontResolveShortcuts' => 0, ), //printtiversio 'fileName' => array( 'index' => array( '_DEFAULT' => array( 'keyValues' => array(), ), 'print' => array( 'keyValues' => array ( 'type' => 98, ), ), ), ), //tt_news alla 'fixedPostVars' => array(), '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 'select_category' => 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', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), array( 'GETvar' => 'tx_ttnews[swords]', ), ), ), ), 'preVars' => array( array( 'GETvar' => 'type', 'valueMap' => array( 'print' => '98', ), 'noMatch' => 'bypass' ), array( 'GETvar' => 'L', 'valueMap' => array( 'fi' => '0', 'en' => '1', ), 'noMatch' => 'bypass', ), ), '_DOMAINS' => array( 'encode' => array( array( 'GETvar' => 'L', 'value' => '0', 'ifDifferentToCurrent' => true, 'useConfiguration' => '_DEFAULT', 'urlPrepend' => 'http://www.domain.fi', ), array( 'GETvar' => 'L', 'value' => '1', 'ifDifferentToCurrent' => true, 'useConfiguration' => '_DEFAULT', 'urlPrepend' => 'http://www.domain.com', ) ), 'decode' => array( 'www.domain.fi' => array( 'GETvars' => array( 'L' => '0', ), 'useConfiguration' => '_DEFAULT', ), 'www.domain.com' => array( 'GETvars' => array( 'L' => '1', ), 'useConfiguration' => '_DEFAULT', ), ), ), ); $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.com'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']; $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.fi'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']; ##realurl setup end -- With kind regards Katja Lampela *Lieska-tuotanto* www.lieska.net _______________________________________________ TYPO3-english mailing list [email protected] http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
