Welcome Guest, Not a member yet? Register   Sign In
help with routes[]
#1

[eluser]chefnelone[/eluser]
Hello

I have this route rule working fine:

Code:
$route['[^/]+/(:any)'] = 'index/$1';

it re-maps these URL strings:
en/photos
es/contact
cat/contact


but my problem is that it re-maps these too:
something/photos
somethingelse/contact


I need to limit the rule to work only if the first segment have 2 o 3 characters.
I know I have to put {2,3} somewhere but don't know where....

thanks


Messages In This Thread
help with routes[] - by El Forum - 09-15-2010, 01:57 AM
help with routes[] - by El Forum - 09-15-2010, 03:34 AM
help with routes[] - by El Forum - 09-15-2010, 03:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB