Welcome Guest, Not a member yet? Register   Sign In
routing problem
#4

[eluser]mddd[/eluser]
The route doesn't work because 'any' can match more than a single uri segment.
If you write the route differently it will probably work:
Code:
$route['sites/([^/]+)/(.*)'] = '$2';
([^/]+) will match only one segment, leaving the second bracketed part to be 'controller/function/var/var/...'


Messages In This Thread
routing problem - by El Forum - 07-20-2010, 04:23 AM
routing problem - by El Forum - 07-20-2010, 04:57 AM
routing problem - by El Forum - 07-20-2010, 05:08 AM
routing problem - by El Forum - 07-20-2010, 05:23 AM
routing problem - by El Forum - 07-20-2010, 09:02 AM
routing problem - by El Forum - 07-20-2010, 10:27 AM
routing problem - by El Forum - 07-21-2010, 01:02 AM
routing problem - by El Forum - 07-21-2010, 01:33 AM
routing problem - by El Forum - 07-27-2010, 02:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB