Welcome Guest, Not a member yet? Register   Sign In
Multilanguage site with different root domains
#1

[eluser]Joa[/eluser]
Hi. I'm quite new to CI wonder if anyone can help me with this:

I'm building a site with three languages: english, finnish, swedish. Since we have three different domain names for the language setting I would like to use

domain.com -> english version
domain.fi -> finnish version
domain.se -> swedish version

Hence the preferred method by using uri segment 1 like the "/en/controller/method/argument" approach won't work.

The site suppose to be database driven for contents so I like to set a global variable ($lang) to use for getting the correct language specific fields from the database (ie "title_en", "title_fi" etcetera).

I wonder where to start looking for a solution. Would it be a .htaccess rewrite or a routing thing? Any suggestions?


Messages In This Thread
Multilanguage site with different root domains - by El Forum - 04-07-2011, 02:57 PM
Multilanguage site with different root domains - by El Forum - 04-07-2011, 03:07 PM
Multilanguage site with different root domains - by El Forum - 04-07-2011, 03:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB