CodeIgniter Forums
page cannot be 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: page cannot be found (/showthread.php?tid=15205)



page cannot be found - El Forum - 01-29-2009

[eluser]jackIgniter[/eluser]
It's very strange!

I reinstall my OS (windows XP), and I change to use IIS (6.0) this time instead of Apache. All of my CI projects become to page cannot be found. Each project only works with the default controller. I can use the welcome controller to load any view, but if change to the non-default controller then I will get page cannot be found problem.

Does anybody encounter this problem before?


page cannot be found - El Forum - 01-29-2009

[eluser]Phil Sturgeon[/eluser]
Your config is probably still expecting mod_rewrite, but IIS will ignore .htaccess files.

Remove .htaccess and put the index.php back.


page cannot be found - El Forum - 01-29-2009

[eluser]jackIgniter[/eluser]
Actually, I didn't use mod_rewrite in my CI projects.

Here is the URL of my web: http://localhost/CI/index.php/mycontroller/. And it give the page cannot be found error. But if use the default controller 'welcome' to load any page, it work fine.


page cannot be found - El Forum - 01-29-2009

[eluser]jcavard[/eluser]
IIS? Why?

Have you tried direct access to your localhost? (http://localhost/)
If you can get there, then you might need to map your CI folder to IIS.

this might come in handy: http://forums.iis.net/


page cannot be found - El Forum - 01-29-2009

[eluser]Phil Sturgeon[/eluser]
In which case try changing the URI_PROTOCOL setting in config.php. Try them all until one works.