Welcome Guest, Not a member yet? Register   Sign In
routes problem ? (thx for reading)
#4

[eluser]eggshape[/eluser]
sorry I really don't know why your regexp failed; seems like *proper* regexp lingo, so maybe it's how CI handles this.

the brackets aren't really necessary; in regexp-speak, they just mean "only these cases are valid"...like match [1a,] (match 1 or a or ,). since it fails, it must be the way CI handles these regexp for this class.

edit: maybe you have an extra forward slash for $2; i would also change the * to + (1 or more)
Code:
$route['(cs|sk|pl)/(.+)/$'] = "$2/$1";

if your regexp fails to match the URI, then CI uses the URI as the default.


Messages In This Thread
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:18 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:25 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:47 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:55 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 06:00 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 06:26 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 06:44 PM
routes problem ? (thx for reading) - by El Forum - 01-10-2008, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB