Welcome Guest, Not a member yet? Register   Sign In
Can I Route YYYY/MM/DD URL Segments to a Controller?
#1

[eluser]kirkaracha[/eluser]
I'm trying to use routes to have a timeline controller handle URLs like this: example.com/2011/04/15

I tried these routes, but they aren't working (I get a 404):
Code:
$route['(:num)/(:num)/(:num)'] = 'timeline/$1/$2/$3'; //  year, month, and day
$route['(:num)/(:num)'] = 'timeline/$1/$2'; // year and month
$route['(:num)'] = 'timeline/$1/'; // year only

What am I missing?


Messages In This Thread
Can I Route YYYY/MM/DD URL Segments to a Controller? - by El Forum - 04-14-2011, 09:05 PM
Can I Route YYYY/MM/DD URL Segments to a Controller? - by El Forum - 04-14-2011, 09:57 PM
Can I Route YYYY/MM/DD URL Segments to a Controller? - by El Forum - 04-14-2011, 10:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB