404 Page Not Found codeigniter url 404 Page Not Found codeigniter url codeigniter codeigniter

404 Page Not Found codeigniter url


codeigniter works on base_url~/index.php/class_nm/function/segment3. Now in your case change file name Cart.php.

localhost/ci/index.php/cart/index

and make sure your function index is public, I guess it will fix your problem :)


You are getting the 404 page not found error because controller "shopcart" is not defined. Instead you have defined a controler "cart". So you should try localhost/ci/index.php/cart instead.


Try adding the url helper as well. That works for me!