CodeIgniter Forums

Full Version: Routing for bilingual website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]steelaz[/eluser]
Recently I had to to a bilingual website. To change active language I created a controller that adds a session variable for user. Constructor then reads the variable and acts accordingly. The problem I'm in right now is that this setup is not SEO friendly. I think I need my URLs to look something like index.php/en/controller/method/ for search engines to spider the whole website. How can I set this up in CI routing?

El Forum

[eluser]Seppo[/eluser]
I think this can be useful
http://codeigniter.com/wiki/URI_Language_Identifier/

El Forum

[eluser]steelaz[/eluser]
Thank you, that was very helpful.