[eluser]KeyStroke[/eluser]
I'm trying to make a site where the content's language is specified in the first URI segment. For example:
example.com/en/product/1 (English)
example.com/ar/product/1 (Arabic)
and so on.
How do I set routing so that it always treats the second segment (which is "product" in this case) as the controller, and not the first one?
I tried this:
Code:
$route['ar/(*)'] = "$1";
$route['en/(*)'] = "$1";
But it didn't work.
Will someone help me with this please?