CodeIgniter Forums
404 Page Not Found - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: 404 Page Not Found (/showthread.php?tid=34445)

Pages: 1 2


404 Page Not Found - El Forum - 09-29-2010

[eluser]ubuntuman[/eluser]
404 Page Not Found - The page you requested was not found.

I renamed the codeIgniter folder "ci" and put it in www root folder on my wamp server. so my url is http://localhost/ci/

I changed the welcome.php controller file to home.php with the following code;

------------------------------------
<?php
class Home extends Controller {


function index()
{
$this->load->view('home_message');
}
}
?>

I edit the config.php and made the following changes;

$config['base_url'] = "http://localhost:8080/ci/";

I edit the routes.php and made the following changes;

$route['default_controller'] = "home";


Ok what did I do wrong? I checked everything and I am getting 404 Page Not Found.


404 Page Not Found - El Forum - 09-29-2010

[eluser]InsiteFX[/eluser]
Did you change the the system and application folders in index.php?

Also make sure you rename the welcome_message view.

InsiteFX


404 Page Not Found - El Forum - 09-29-2010

[eluser]ubuntuman[/eluser]
I did not make any changes to the index files in the systems and application folder? was I suppose to make changes? If yes, what should I do?


404 Page Not Found - El Forum - 09-29-2010

[eluser]InsiteFX[/eluser]
index.php

Code:
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same  directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
    $system_folder = "ci";

/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
| For more info please see the user guide:
| http://ellislab.com/codeigniter/user-guide/general/managing_apps.html
|
|
| NO TRAILING SLASH!
|
*/
    $application_folder = "application";

InsiteFX


404 Page Not Found - El Forum - 09-29-2010

[eluser]ubuntuman[/eluser]
Their is currently a default index.html in both the application and systems folders. Should I convert it to index.php or should I create a new index.php


404 Page Not Found - El Forum - 09-30-2010

[eluser]InsiteFX[/eluser]
In the root there should be a index.php file that's the one you edit!

InsiteFX


404 Page Not Found - El Forum - 09-30-2010

[eluser]ubuntuman[/eluser]
Still does not work.

I notice you put $system_folder = "ci" instead of "system"
ci is my root folder.

when I put "ci" I get the following errors:

Warning: require_once(C:\wamp\www\ci/ci/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\ci\index.php on line 115

Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www\ci/ci/codeigniter/CodeIgniter.php' (include_path='.;C:\php5\pear') in C:\wamp\www\ci\index.php on line 115


404 Page Not Found - El Forum - 09-30-2010

[eluser]InsiteFX[/eluser]
That is an example of mine!

It should point to your system folder.

I think you really need to sit down and read the CodeIngniter
Users Guide.

InsiteFX


404 Page Not Found - El Forum - 09-30-2010

[eluser]ubuntuman[/eluser]
I followed the tutorial on Codigniter and it just does not work. All I did was create a new controller and view file with the exact info as the welcome.php controller. The default welcome.php works well but my new controller does not. So it is obvious that something else not covered in the manual is wrong.


404 Page Not Found - El Forum - 09-30-2010

[eluser]WanWizard[/eluser]
What platform are you developing on? Does the webserver has read-access to the new files you have created? Did you enable CI logging? What does the log say?

In short, see InsideFX' signature...