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

[eluser]champs[/eluser]
Your basic flaw is not having a period in your captured pattern, i.e. "(.*)". Without knowing your specific needs, this is a low-complication example of what you'd do if you want to be specific about which languages are allowed:

Code:
$route['(en|ar|de|nl|es|fr|ru|pt)*/*(.*)'] = '$2';


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