CodeIgniter Forums
404 Object Not Found - 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 Object Not Found (/showthread.php?tid=3789)



404 Object Not Found - El Forum - 10-22-2007

[eluser]mikhailt[/eluser]
I get an error "404 Object Not Found"
in http://localhost/codeigniter/index.php/welcome

I have configured
$config['uri_protocol'] = "PATH_INFO";
and tried all the other combinations AUTO,QUERY_STRING etc.
Tried $config['index_page'] = "index.php?"; with ? or without '?' too
Default route is not configured.

If I try just http://localhost/codeigniter/index.php [no welcome here]
then got error "Unable to determine what should be displayed" as it should be.

If the default route is configured the start page is loaded. But further segmented URLs do not work. http://localhost/codeigniter/index.php/welcome/my_method
I get an error "404 Object Not Found" Sad

I use the last CI 1.5.4 and IIS5.1 (Win XP) with proxy. But proxy is disabled in browser for localhost.

Can somebody help my?


404 Object Not Found - El Forum - 10-31-2007

[eluser]ekeretex[/eluser]
Hi mikhailt,

I'm sure you've sorted your IIS issues but just in case you haven't (and for other folks with the same problem), I found that some versions of IIS don't work with $config['uri_protocol'] set to PATH_INFO.

All I had to do to get it to work was set 'index.php' to 'index.php?' and leave $config['uri_protocol'] set to AUTO. Hope that helps someone.