404 Page Not Found Error Codeigniter
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow codeigniter 404 page not found on server the company Business Learn more about hiring developers or posting ads with us Stack codeigniter 404 page not found the page you requested was not found Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Codeigniter 404 Page Not Found /index
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CodeIgniter: 404 Page Not Found on Live Server up vote 15 down vote favorite 4 I have been
404 Page Not Found In Codeigniter 3
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 404 page not found codeigniter htaccess 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! php codeigniter share|improve this question edited Oct 5 '15 at 14:47 Hassaan 3,4643726 asked Feb 25 '15 at 0:46 twigman08 78116 you can find your answer from this link stackoverflow.com/questions/9315316/… and stackoverflow.com/questions/17630669/… –Maninderpreet Singh Feb 25 '15 at 5:14 add a comment| 10 Answers 10 active oldest votes up vote 40 down vote accepted 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more
404 Codeigniter
about Stack Overflow the company Business Learn more about hiring developers or posting codeigniter 404 page not found on live server ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack the page you requested was not found. codeigniter 3 Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Codeigniter: All pages shows 404 page not found (codeigniter's 404, not http://stackoverflow.com/questions/28709185/codeigniter-404-page-not-found-on-live-server apache's) up vote 1 down vote favorite Recently, before my PC changed hard disk, I was using Virtual Host. After I changed hard disk, I am now using apache's htdocs folder. When I tried accessing my codeigniter project again, all pages show '404 Page Not Found'. It is not from my web server because I can tell the error message is from CodeIgniter's(because it is a styled 404 error http://stackoverflow.com/questions/30564862/codeigniter-all-pages-shows-404-page-not-found-codeigniters-404-not-apaches page). My Project has two controllers: (Admin.php and Vendor.php). These two were working just fine. Things I tried: Checked my config/config.php $config['base_url'] = ''; $config['index_page'] = 'index.php'; then I tried changing it to: $config['base_url'] = 'http://localhost/Work%20Projects/Admin_Panel/'; Tried accessing my controllers with and without the index.php in case my mod_rewrite is not functioning. Still not working. http://localhost/Work%20Projects/Admin_Panel/index.php/admin http://localhost/Work%20Projects/Admin_Panel/admin php codeigniter share|improve this question asked Jun 1 '15 at 2:31 Kenth John Israel 559 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Change this in Config.php $config['base_url'] = ''; $config['index_page'] = 'index.php'; .htacess
Web Development Computer ProgrammingHow do I solve CodeIgniter's 404 not found error?I have to handle an already developed website in codeIgnitor. I have added a new page in https://www.quora.com/How-do-I-solve-CodeIgniters-404-not-found-error the website through FTP in the application/view folder, but it shows 404 not found error. How can I solve it? Other pages in the same directory can be seen perfectly!UpdateCancelPromoted by ToptalSimplify the hunt for your next developer.Toptal matches companies like Airbnb, Udacity, and Thumbtack with the top 3% of developers.Learn More at Toptal.comAnswer Wiki11 Answers Christophe Sautot, Creator of Event not found Staff App (eventstaffapp.com)Written 46w agoOne other item to check: With the newer version of CI, and depending on your server, check the case of your controller file.Notice that:class Welcome extends CI_Controller {uses a file name of Welcome.php (with a capital W)21.2k Views · View UpvotesRelated QuestionsMore Answers BelowCodeigniter NuSoap Error996 ViewsWhat is a way to solve the "page not found" error?2,245 ViewsHow 404 page not do I solve this: ''PHP. move_uploaded_file() error - 404''?644 ViewsWhen I enter the url without www, I receive an 404 not found error.How to rectify it?1,890 ViewsWhat is error 404?4,965 Views James Burgess, James Burgess is a technology writer and software developer @ ValueCoders.comWritten 53w agoI am using CodeIgniter for two applications (a public and an admin app). The important elements of the document structure are:config.php to$config['uri_protocol'] = "REQUEST_URI";The /admin/.htaccess file looks like this:DirectoryIndex index.phpRewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ ./index.php/$1 [L,QSA]everything worked.JamesSoftware Developer at Valuecoders17k Views · View Upvotes Kumar Navneet, web developerWritten 53w agoThat error can happen for many reason. here is some1.make sure you have main.php under controllers folder and inside main.php you should have a class Main which extends CI_Controller like thisclass Main extends CI_Controller2.make sure your .htaccess working.If your previous step is ok then try to hit this linkyour_site_url/index.php/main/cek_login//make sure cek_login function exists inside the controllerIf this link works you may have .htaccess problem3.your cpanel error tells that your .htaccess not working.check your server if it has main .htaccess which is redirecting your site if file not fou