Welcome Guest, Not a member yet? Register   Sign In
CI RegEx route issue
#1

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


Messages In This Thread
CI RegEx route issue - by El Forum - 04-07-2008, 06:11 AM
CI RegEx route issue - by El Forum - 04-07-2008, 07:16 AM
CI RegEx route issue - by El Forum - 04-07-2008, 08:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB