CodeIgniter: 404 Page Not Found on Live Server

twigman08

I have been developing a small web application with CodeIgniter. After testing it out locally I went to put it on my web server to allow a couple other people test out some features. While navigating to the site I get: -

404 Page Not Found error page

When viewing it in my local machine everything loads up and runs perfectly.

This is what I uploaded to the public_html directory:

application directory
system directory
assets directory (my assets for the site)
index.php

All of those are in the public_html directory. Like I said, it does give me CodeIgniters 404 error page, so I do know it is at least seeing CodeIgniter. I also tried changing the $config['base_url'], in the config.php, to my URL. Same error when changing that or leaving it blank. I checked my routes, and all those seem correct. Everything also loads up just fine when navigating to it on my local machine.

I also am not using a .htaccess file at this time

Any suggestions on what I should try?
Thanks a lot!

Binoj T E

You are using MVC with OOPS Concept. So there are some certain rules.

1) Your class name (ie: controller name) should be start with capital Letter.

e.g.: your controller name is 'icecream'. that should be 'Icecream'

In localhost it might not be compulsory, but in server it will check all these rules, else it can't detect the right class name.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Codeigniter 404 Error On Live Server

Routes in Codeigniter - 404 Page Not Found

404 Page Not Found codeigniter url

error "404 Page Not Found" in codeigniter

404 page not found error in Codeigniter

Codeigniter 404 page not found with form

'404 Page Not Found' every page with codeigniter

Custom 404 not showing in Codeigniter on live server

404 Page Not Found codeigniter url - php

Codeigniter pagination link go to 404 Page Not Found

Codeigniter 3.0.0 - error 404 page not found

codeigniter 3.0 custom 404 not found error page

Pagination not working in codeigniter getting 404 page not found

$.post to Codeigniter Controller/Method 404 Page Not Found

CodeIgniter 404 Page Not Found with another controller

404 page not found the page you requested was not found in codeigniter

404 Page Not Found The page you requested was not found. codeigniter

Codeigniter only home page working on Live server

Config codeigniter on remote server (404 not found)

live server shows 404 error, but not on local, codeigniter 3

"Page Not Found/404 handler” to Swift Express Server

Codeigniter project works local but not online - 404 page not found

Redirecting to another page in online getting 404 not found error in codeigniter

Codeigniter Controller class login form : 404 page not found

404 Page Not Found codeigniter controller not working after change its name

404 Page Not Found The page you requested was not found while new page created codeigniter

Codeigniter 404 Not Found Error

CodeIgniter 404 not found controller

codeigniter 404 not found CSS

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive