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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -