Welcome Guest, Not a member yet? Register   Sign In
route problem
#2

[eluser]CroNiX[/eluser]
Change the order of these 2 routes:
Code:
$route['halaman/(:any)'] = 'halaman/view/$1';
$route['halaman/news(:any)'] = 'halaman/news/$1';

The more specific route (3 segments) needs to come before the less specific route (2 segments or 1), because a url of "halaman/news/something" will actually also match the "halaman/(:any)" rule if that one comes first.

Also, you should have a slash after news and before (:any) in the 2nd route.


Messages In This Thread
route problem - by El Forum - 07-24-2012, 10:25 PM
route problem - by El Forum - 07-25-2012, 12:42 AM
route problem - by El Forum - 07-26-2012, 11:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB