codeigniter - (:any) routing blocks 404_override routing -
i have these routes :
$route['default_controller'] = 'pages/view/$1'; $route['product/(:any)'] = 'pages/product/$1'; $route['category/(:any)'] = 'pages/category/$1'; $route['(:any)'] = 'pages/view/$1';
but when want add $route['404_override'] = 'my404'
any
routing stops working , i'm not able homepage base_url('home')...
you need define route home controller. problem have defined $route['(:any)'] = 'pages/view/$1';
override undefined routes. either need change $route['(:any)'] = 'pages/view/$1';
else or need define route home like: $route['home'] = 'home_controller';
Comments
Post a Comment