Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Reduce the number of routing rules?
#3

[eluser]JayTee[/eluser]
Didn't work quite right:
Code:
$route['(:any)/(.*)'] = "$2";
http://example.com/blah/controller -> good
http://example.com/blah/controller/method -> 404 not found
http://example.com/blah/controller/method/arg1 -> 404 not found

It seems like the second capture group only focuses on segment 2 and ignores segments 3...N


Messages In This Thread
[SOLVED] Reduce the number of routing rules? - by El Forum - 10-25-2010, 11:47 AM
[SOLVED] Reduce the number of routing rules? - by El Forum - 10-25-2010, 12:15 PM
[SOLVED] Reduce the number of routing rules? - by El Forum - 10-25-2010, 12:22 PM
[SOLVED] Reduce the number of routing rules? - by El Forum - 10-25-2010, 12:39 PM
[SOLVED] Reduce the number of routing rules? - by El Forum - 10-25-2010, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB