Codeigniter App showing 404 page when used on my linux server

Hello experts,

I've been working on a codeigniter app. I use wampserver to develop it (works fine on localhost), but after moving it online, I get a 404 page.
I have no idea what the problem is, I've tried everything I know, including:

- Setting $config['index_page'] to both $config['index_page'] = '' AND $config['index_page'] ='index.php' (Both options don't work)

- Ensuring that mod_rewrite is enabled.

- Using various .htaccess configs.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marco GasiFreelancerCommented:
This same thing happens to me almost everytime I move a CodeIgniter site from development to production: I alway forget to update $config['base_url'] in application/config/config.php file. Can be this for you also?
xmodulusAuthor Commented:
I have tried that, I changed the base_url to my online url too
Marco GasiFreelancerCommented:
This is my .htaccess

DirectoryIndex index.php

# Rewrite engine
RewriteEngine On

# condition with escaping special chars
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]

Open in new window

I don't use index.php so I have

$config['index.php'] = '';

But if all was good in your local server and if you haven't changed nothing in your route.php, the only place where to look for a solution seems to be config.php...
Can you post the exact message error or a link to the live site and the code of your config.php?
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Loganathan NatarajanLAMP DeveloperCommented:
Are you using latest version (3.0.x)? Class names must start with an uppercase letter.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xmodulusAuthor Commented:
Meaning file names or the actualy class name declared at the start of controllers? What about referencing other classes in another controller?
xmodulusAuthor Commented:
Thanks alot, that worked! All my controller and model filenames now start with an uppercase letter and everything works perfectly.
Loganathan NatarajanLAMP DeveloperCommented:
More details here,

I too had the same issue on my linux hosting server. I did not have any issue in my local windows. So I gone through this and fixed.

On CodeIgniter 3.0.x , they're making some conventions as per the manual given.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.