Welcome Guest, Not a member yet? Register   Sign In
Routing for bilingual website
#1

[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?
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB