views:

106

answers:

3

In codeigniter, the name of your controller, reflects the URL. But my question is, how can you create multi language URLs without copy/pasting all your controllers.

Example:

Thanks

A: 

Usually a URL rewrite filter is used to handle this kind of behaviour.

I'm not familiar with CodeIgniter but a quick Google search shows this page about using mod rewrite in CodeIgniter.

Pool
A: 

You should be able to do it by creating aliases to each controller. Check your config/routes.php path

yoda
+1  A: 

Take a look at URI routing in Code Igniter's user guide.

Ionuț G. Stan