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

[eluser]JayTee[/eluser]
I have a set of routing rules that looks like this:
Code:
$route['(:any)/(:any)/(:any)/(:any)'] = "$2/$3/$4";
$route['(:any)/(:any)/(:any)'] = "$2/$3";
$route['(:any)/(:any)'] = "$2";

The goal is to make sure CI always ignores segment 1 (I'm using that segment for something special)

Is there any way to always ignore segment 1 regardless of how many segments occur after it without having to make lots of different routes like I had to do above?

SOLVED: - my last response


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