Raduken Raduken - 4 years ago 74
PHP Question

CodeIgniter: 404 Page not found after push for server

I did some apps on my local machine, runs ok, but after send that to the server I am getting 404 error page, I tried all methods but none works, can you help me with that?

a2enmod rewrite is on.

I found in google I need use in the server the same version of my php I have in my localmachine or my app will not run, that is true?

my local:

$config['base_url'] = 'http://localhost:8888/app/';
$config['index_page'] = 'index.php';

my server:

$config['base_url'] = 'http://example.com/app';
$config['index_page'] = 'index.php';

I tried too:

$config['base_url'] = '';
$config['index_page'] = '';

I got stuck on that, can you help me with that?

Answer Source

The error was: in controllers was like that: user.php so i renamed for User.php, i not understand well that, but fixed online my code.

using user.php run in my local but not in live, if somebody know why, please leave a comment too.

thanks all for the help.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download