我在 TYPO3 项目中添加了一种新的网站语言。新的网站语言有id=2
. 但是如果我打电话给www.your-domain.com/hr.html
我404 - page not found
(通常应该出现翻译语言的起始页)。菜单也显示不带/hr/
. 我可以用http://www.your-domain.com/index.php?L=2
. Typo3 的配置看起来像
config {
linkVars = L
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
sys_language_uid = 0
language = de
locale_all = de_DE
htmlTag_langKey = de-DE
}
[globalVar = GP:L=1]
config {
sys_language_uid = 1
language = en
local_all = en_GB
htmlTag_langKey = en-GB
}
[global]
[globalVar = GP:L=2]
config {
sys_language_uid = 2
language = hr
local_all = hr_HR
htmlTag_langKey = hr-HR
}
[global]
RealURL 配置是
'preVars' => array (
'0' => array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => '1',
),
'noMatch' => 'bypass'
),
'1' => array (
'GETvar' => 'L',
'valueMap' => array (
'de' => '0',
'en' => '1',
'hr' => '2',
),
'valueDefault' => 'de',
'noMatch' => 'bypass',
),
'2' => array (
'GETvar' => 'lang',
'valueMap' => array (
'de' => '0',
'en' => '1',
'hr' => '2',
),
'valueDefault' => 'de',
'noMatch' => 'bypass',
),
对我来说,看起来一切都应该正常工作,但事实并非如此。我还清除了 RealURL 缓存
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_pathcache'] = 'tx_realurl_pathcache';
并localconf.php
按下Clear all caches
按钮。我正在使用 realurl 1.12.1 和 Typo3 4.5.5。我也看了看htaccess
,没有发现什么特别的。我错过了什么?