CodeIgniter Forums
404 Error - Installation Fail? [SOLVED] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 404 Error - Installation Fail? [SOLVED] (/showthread.php?tid=25474)



404 Error - Installation Fail? [SOLVED] - El Forum - 12-13-2009

[eluser]Ashton.Sanders[/eluser]
Hi All,

I just installed CI for the first time, but every page I get is a 404. I'm sure it's a simple setting I forgot...

Here's more info if it helps:
I have installed CI "index.php" in a subdirectory "/art/"
I have put "/system" in the root
I have put "/application" in the root.
I have updated the index file to load ../system and ../application
I did the htaccess rewrite, which seems to be working correctly. ( I have the 404 error page spitting out what PHP_SELF says "Page Loaded from: /art/index.php/welcome".
I haven't doe anything with controllers/welcome

I have tried copy/pasting the code for a blog controller as well...

I hope that's enough info.
Thanks,
Ashton


404 Error - Installation Fail? [SOLVED] - El Forum - 12-13-2009

[eluser]InsiteFX[/eluser]
Did you set your base_url in application/config/config.php ?

Your index.php should start in your web root.

Enjoy
InsiteFX


404 Error - Installation Fail? [SOLVED] - El Forum - 12-13-2009

[eluser]Ashton.Sanders[/eluser]
Yes, the Base_url is set correctly.

Is it possible to have the index.php in a sub directory? so I can install another program in the root? I guess I could make it a subdomain... would that fix the problem?


404 Error - Installation Fail? [SOLVED] - El Forum - 12-13-2009

[eluser]Ashton.Sanders[/eluser]
I solved this problem by chaning the URI_protocol (in the /application/config.php) to:


Code:
$config['uri_protocol']    = "REQUEST_URI";

(I'm hosted with Godaddy... which may have caused it.)

Thanks for your help InsiteFX