[TYPO3-english] RealURL home page language redirect
Kaya Basharan
kayabasharan at hotmail.com
Fri Sep 3 15:08:55 CEST 2010
Hello everyone,
My realurl configuration is working with one exception: it redirects away from the home page when selecting a different language.
For example: the home page is http://localhost:8505/ and selecting English (the default language is German) gives http://localhost:8505/en.html but displays the first sub-page instead of the home page (the language is correct).
I thought I had solved the problem but it has returned to haunt me just as the site is ready to go live.
I fixed the problem last time by changing:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
into:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['localhost'] = array(
But now I have:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['192.168.1.14'] = array(
and it's doing the same thing again.
http://192.168.1.14/en.html displays the first sub-page when it should show the home page.
I have spent days on this with no progress (cleared every cache, read the manual thoroughly many times).
Does anyone know what I'm doing wrong? Any help would be greatly appreciated.
sincerely
Kaya Basharan
_ _ _ _ _ _ _ _
Typo3 version 4.4.2
RealUrl version 1.9.3
the Template:
simulateStaticDocuments = 0
baseURL = http://192.168.1.14/
tx_realurl_enable = 1
prefixLocalAnchors = all
linkVars = L
uniqueLinkVars = 1
sys_language_uid = 0
sys_language_overlay = content_fallback
localconf.php:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['192.168.1.14'] = array(
//init configuration section
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
'postVarSet_failureMode' => '',
),
//preVars configuration section
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
'ar' => '2',
),
'noMatch' => 'bypass',
),
),
//pagePath configuration section
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 1,
),
//fileName configuration section
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
),
);
_ _ _ _ _ _ _
Kaya Basharan
More information about the TYPO3-english
mailing list