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?

+3


source to share


2 answers


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.

+1


source


Please place phpinfo()

in any php file under the web directory and check the "Loaded Modules" in your browser. If you see mod_rewrite

, then it is on and otherwise not. You should also check the modules mod_reques

and make sure you put the .htaccess file in the correct location.



0


source







All Articles