[TYPO3] Two languages with different domains. How to configure?
Morten Kjems
mortenkjems at gmail.com
Thu Aug 9 00:56:39 CEST 2007
Hi.
I am having trouble to get my language configuration configured correctly.
My site runs on two languages that are attached to a domain each.
Like this:
domain.dk: danish (default language)
domain.com: english
It is a one page three solution with TV where all pages are localized. I
am using RealURL.
What I would like to achieve is this:
If a user enters the site by domain.com he should stay on that domain
and the urls generated should be like this
"domain.com/home/article.html" and not something like
"domain.dk/en/home/article.html"
Also when a flag is clicked in the language navigation link should
reflect the domain as described above. When I click a flag now - lets
say from a domain.dk page the link generated will be
domain.dk/en/home/article.html. However if I type
domain.com/home/article.html directly in the browser it works just fine.
This leads to another problem: All my articles are available from
several URLs. This is confusing and will penalized by the search
engines. Each article will be accessible with three different URLs:
- domain.dk/en/home/article.html
- domain.com/en/home/article.html
- domain.com/home/article.html
All suggestions on how solve these errors are most welcome.
My current setup looks like this:
#setting danish language
[globalString = IENV:HTTP_HOST =*domain.dk]
config {
sys_language_mode = content_fallback
sys_language_overlay = hideNoneTranslated
LinkVars = L
language = dk
locale_all = da_DK
config.baseURL = http://www.domain.dk/
}
[global]
#setting english language
[globalString = IENV:HTTP_HOST =*domain.com]
config {
sys_language_uid = 1
language = en
locale_all = en_EN
config.baseURL = http://domain.com/
}
[global]
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
[global]
Hope to get help!
Thanks
/Morten
More information about the TYPO3-english
mailing list