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 the company Business Learn more about 404 page not found codeigniter controller hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
404 Page Not Found The Page You Requested Was Not Found. Codeigniter
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. codeigniter 404 page not found on server Join them; it only takes a minute: Sign up CodeIgniter: 404 Page Not Found on Live Server up vote 16 down vote favorite 4 I have been developing a small web application with CodeIgniter. After testing it out locally
404 Page Not Found In Codeigniter 3
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, 404 page not found codeigniter htaccess 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,4733726 asked Feb 25 '15 at 0:46 twigman08 83116 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 class name. share|improve this answer edited May 13 '15 at 7:43 Glorfindel 13.4k112545 answered May 13 '15 at 6:53 Binoj T E 41652 3 Just a note: the class name and the file name bo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
Codeigniter 404 Page Not Found /index
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 ads with us Stack the page you requested was not found. codeigniter 3 Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, http://stackoverflow.com/questions/28709185/codeigniter-404-page-not-found-on-live-server helping each other. Join them; it only takes a minute: Sign up CodeIgniter 404 Page Not Found, but why? up vote 16 down vote favorite Hello I am using CodeIgniter for two applications (a public and an admin app). The important elements of the document structure are: /admin /admin/.htaccess /admin/index.html /application /application/admin /application/public /system .htaccess index.php The /admin/.htaccess http://stackoverflow.com/questions/3752609/codeigniter-404-page-not-found-but-why file looks like this: DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] The /admin/index.php has the following changes: $system_folder = "../system"; $application_folder = "../application/admin"; (this line exists of course twice) And the /application/admin/config/routes.php contains the following: $route['default_controller'] = "welcome"; $route['admin'] = 'welcome'; Welcome is my default controller. When I call up the Domain/admin I get a 404 Page Not Found error. When I call up the Domain/admin/welcome everything works fine. In the debug logs I get the following error message: DEBUG - 2010-09-20 16:27:34 --> Config Class Initialized DEBUG - 2010-09-20 16:27:34 --> Hooks Class Initialized DEBUG - 2010-09-20 16:27:34 --> URI Class Initialized ERROR - 2010-09-20 16:27:34 --> 404 Page Not Found --> admin Weirdly enough this setup works perfectly on my local MAMP installation (with the localdomain/admin/), but when I publish and test it on the "live" server, I just get 404 errors. Any ideas? What am I doing wrong? Thanks C. php codeigniter routes http-status-code-404 share|improve this question asked Sep 20
start getting this error: "404 Page Not FoundThe page you requested was not found."I have tried several method to resolve it https://www.sitepoint.com/community/t/404-page-not-found-the-page-you-requested-was-not-found-codeigniter-project/223800 but still getting the same error message. bellow are my files. Below is my config.php file showing the base url of my application: $config['base_url'] = 'http://www.nicebis.com/'; This section contains the .htaccess File: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] Options -Indexes This section shows my database.php file $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] not found = 'localhost'; $db['default']['username'] = 'username'; $db['default']['password'] = 'password'; $db['default']['database'] = 'databasename'; $db['default']['dbdriver'] = 'mysql'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; My rout.php file is below: $route['default_controller'] = "account/login"; $route['404_override'] = ''; Please what is it that i'm not 404 page not doing right? I need your help Thanks Ebere WebMachine 2016-05-12 15:17:42 UTC #2 I had exactly the same problem a week or so ago - turns out it was my .htaccess file: see https://www.sitepoint.com/community/t/codeigniter-3-and-cgi-fastcgi-solved/223069. John_Betong 2016-05-12 15:35:09 UTC #3 globalice: nicebis.com If @WebMachine's post did not work, try. Without .htaccess file Check the logs Set php error_reporting(-1); and ini_set('display errors', true); Set ./configure/configure.php threshold to 4 Check log Create temporary index.html and make sure that works globalice 2016-05-12 15:41:19 UTC #4 @John_Betong , this application was hosted with a hosting company and i dont have access to Set ./configure/configure.php John_Betong 2016-05-12 15:43:43 UTC #5 globalice: @John_Betong , this application was hosted with a hosting company and i dont have access to Set ./configure/configure.php CodeIgniter has a configure.php file in their configure directory that you have already modified to set the base_url(); Edit:Add echo __FILE__; die; to the second line of index.php to make sure it is being called. globalice 2016-05-12 15:46:57 UTC #6 @John_Betong Yes, i ealier shared this, but once again, here is it : $config['base_url'] = 'http://www.nicebis.com/'; $config['index_page'] = 'index.php'; John_Betong 2