![]() |
Routing for bilingual website - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Routing for bilingual website (/showthread.php?tid=10025) |
Routing for bilingual website - El Forum - 07-16-2008 [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? Routing for bilingual website - El Forum - 07-16-2008 [eluser]Seppo[/eluser] I think this can be useful http://codeigniter.com/wiki/URI_Language_Identifier/ Routing for bilingual website - El Forum - 07-16-2008 [eluser]steelaz[/eluser] Thank you, that was very helpful. |