Internationalization and Routing: adding the language code (en,de,fr) inside URLs |
[eluser]easymind[/eluser]
I am using version 1.5.4, not from SVN. There is still a big routing bug there which I solved with a bugfix from somebody else. This was my threat: http://ellislab.com/forums/viewthread/64013/ But for my language routing (even in 1 subfolder deep, and it works with or without language in url) I use: Code: $route["[a-zA-Z]{2}/(:any)"] = "$1"; This is the only routing I need to have things like this work: Code: http://xxx.xx/en/folder/controller/function/vars/../.. They all work fine (but I needed to fix Router.php and Codeigniter.php like you can see on my threat or the original bug fix) Original bug fix.: http://codeigniter.com/bug_tracker/bug/2849/ |
Welcome Guest, Not a member yet? Register Sign In |