Codeigniter local Ok but on 404 server

Asked

Viewed 1,070 times

0

Hello guys I’m having a problem to open my project in CI on the server I use;

my config.

if I use /Welcome, for example CI finds the page normally, but if I use any of my controllers it returns 404;

$config['base_url'] = 'http://www.meusite.com.br/novo';
$config['index_page'] = '';

my controler is called index and has $this->load->view('minhaview'); (all normal so far).

my . htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

but still the site does not open on my server but works normally on the localhost.

  • tries to change the permission of your htaccess on the server. I already solved a problem so doing this.

  • If you try to access this other controller with index.php, does it work? for example, http://www.meusite.com.br/novo/index.php/outrocontroller

1 answer

3


Check the first letter of the name of each controller, if it is in low box switch to high box, example: welcome.php switch to Welcome.php. I had the same problem this week while uploading an application to my host.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.