codeigniter 404 error on live server |
i uploaded my app on line and i am getting this error
Code: <!DOCTYPE html>
The most common reason for things lkike this is case sensitivity, if you develop on Windows and deploy to Linux.
You didn't say which URI caused the problem, but if your default homepage, then check that your controller is named Welcome.php and not welcome.php. Windows doesn't care, but the rest of the world does. ps - Using "code" tags makes your post more readable
(05-02-2018, 09:36 AM)ciadmin Wrote: The most common reason for things lkike this is case sensitivity, if you develop on Windows and deploy to Linux. pls I have done all of that but it is still the same problem
use the following
in config.php $config['base_url'] = ''; $config['index_page'] = ''; $config['uri_protocol'] = 'AUTO'; $config['url_suffix'] = ''; in .htaccess (This should place out side application folder) <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> in autoload.php $autoload['helper'] = array('url'); |
Welcome Guest, Not a member yet? Register Sign In |