Welcome Guest, Not a member yet? Register   Sign In
Routing, regular expressions and category paths...
#3

[eluser]Jelmer[/eluser]
Also, for more general debugging, try this order for your routes:
Code:
$route['browse/([a-zA-Z0-9\/]+)/([0-9]+)/[a-zA-Z0-9]+'] = 'browse/product/$2/$1';
$route['browse/([a-zA-Z0-9\/]+)'] = 'browse/category/$1';
I changed the order and you had it "0_9" within the rule, that would match "0", "_" and "9" and I'm assuming you meant "0-9" (0 to 9 numeric).

The routes are matched against the URI in the order you define them in. So the rule you put first (I put second above) would already match the URI before the other rule would ever be considered.

If you got a very specific rule and a more general catch-all type rule: always put the specific rule before the general rule.


Messages In This Thread
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 07:58 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:03 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:12 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:12 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:21 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB