[TYPO3-english] RealUrl multi domains setup
Tilde Gundel
tildegundel at gmail.com
Mon Feb 20 17:08:03 CET 2012
Hi list
I have a realurl configuration on a multi domains site, which is partly
working as intented.
The problems is that the subpages of the main domain (L=0) are showing up
in Google as i.e.* example.com/8* - and thus not the correct speaking url (
example.com/something/), which is not so good in terms of SEO.
All other domains are appearing correct in Google result lists.
I would be very greatfull if some of you are able to pinpoint out the
problem, and thus the solution.
Looking very much forward to hearing from you
The configuration is as follows:
<?php
// RealURL multi domain setup
$tx_realurl_config = array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlDecodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'preVars' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
),
'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]',
),
),
),
),
'fileName' => array(
'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,
),
),
),
),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'example.se' => $tx_realurl_config,
'example.dk' => $tx_realurl_config,
'example.com' => $tx_realurl_config,
'example.eu' => $tx_realurl_config
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['example.se']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['example.dk']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['example.com']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['example.eu']['pagePath']['rootpage_id']
= 1;
unset($tx_realurl_config);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(
'encode' => array(
array(
'GETvar' => 'L',
'value' => '0',
'useConfiguration' => 'example.se',
'urlPrepend' => 'http://example.se/'
),
array(
'GETvar' => 'L',
'value' => '1',
'useConfiguration' => 'example.dk',
'urlPrepend' => 'http://example.dk'
),
array(
'GETvar' => 'L',
'value' => '2',
'useConfiguration' => 'example.com',
'urlPrepend' => 'http://example.com'
),
array(
'GETvar' => 'L',
'value' => '3',
'useConfiguration' => 'example.eu',
'urlPrepend' => 'http://example.eu'
)
),
'decode' => array(
'example.se' => array(
'GETvars' => array(
'L' => '0',
),
'useConfiguration' => 'example.se'
),
'example.dk' => array(
'GETvars' => array(
'L' => '1',
),
'useConfiguration' => 'example.dk'
),
'example.com' => array(
'GETvars' => array(
'L' => '2'
),
'useConfiguration' => 'example.com'
),
'example.eu' => array(
'GETvars' => array(
'L' => '3'
),
'useConfiguration' => 'example.eu'
)
)
);
--
Tilde Gundel
Kronprinsessegade 57D 203
1306 København K
tel: +45 2871 8057
www.esteem.dk
More information about the TYPO3-english
mailing list