Getting 404 error after uploading data to server
I am using codeigniter. I ran the project and uploaded it to the server, but when I run my url, the 404 is not found. I changed the path base_url
but still get problems. Works on the local server. I created a name on the server folder - this is a test and inside the test there is an administrator folder, inside admin all the available code codes.
$config['base_url'] = 'http://test.hybreed.co/admin/';
$config['index_page'] = 'index.php';// also remove the index.php
$config['uri_protocol'] = 'AUTO';
$route['default_controller'] = 'home';// i have created home in controller
The database is fine. Where am I going wrong?
Rename home.php
under the controllers folder to home.php
and inside this file rename class home
to class home
and then check.
Controllers
Controller class names must be lowercase except for the first letter.
If your URL is www.example.com/gallery, the controller name is Gallery.
If your URL is www.example.com/admin_folder, the controller name is Admin_folder.
Controller file names must match the class name, but all lowercase.
Gallery :: gallery.php
Admin_folder :: admin_folder.php
Controller methods must also be lowercase. There is some flexibility with uppercase letters, but similar to URLs, there are possibilities where you can do something.
source to share