CodeIgniter Forums
Its supposed to be easy, right? - 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: Its supposed to be easy, right? (/showthread.php?tid=8474)

Pages: 1 2


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]jodomama[/eluser]
test.htm works fine.

I tried each option in combination with the suggested question mark and without it (10 different combinations)


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]gtech[/eluser]
Seems that other people have the same problem with IIS... if you want an easy setup look at xampp (apache,php and mysql distribution). I will have a hunt on the forums for you see what I can dig out.

[edit]
what version of iis are you using?


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]gtech[/eluser]
[url="http://www.snairl.com/blog/installing-codeigniter-on-iis/"]http://www.snairl.com/blog/installing-codeigniter-on-iis/[/url]

found above link I don't know if its useful at all.. I will do a bit more research and post some more links in this reply.. as one day I may need to use IIS


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]jodomama[/eluser]
XP SP3
IIS 5.1
php 5.2.0
mysql 5.0.27


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]gtech[/eluser]
[url="http://ellislab.com/forums/viewthread/52852/"]http://ellislab.com/forums/viewthread/52852/[/url]

some people suggest using ISAPI Rewrite so the CI search friendly urls work, see above link.


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]jodomama[/eluser]
I dont think it is IIS. Urlrewrites are allright, but we still should find the page without it, dont you think? I tried to change

Code:
$route['default_controller'] = "welcome";

to

Code:
$route['default_controller'] = "temp";

in system/application/config/routes.php and now the Temp class (in temp.php) works, (browsing to http://127.0.0.1). But there seems to be some step missing here. Im not sure weather I missed it or what... Sorry again if this is too newbie for you.


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]gtech[/eluser]
I think you will find the default controller always works, this isn't a newbie question at all as it appears lots of people have had problems with this.

I think the URLS codeigniter uses are not compatable with IIS without using the ISAPI Rewrite.

what you could do as a test is enable_query_strings in the config/config.php and then browse to

www.your-site.com/index.php?c=controller&m=function

see if that works... the config file has a comment to show you how to use enable_query_strings

if that works you know its a URL style problem.


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]jodomama[/eluser]
Yeah, you´re right! Browsing to
http://127.0.0.1/index.php?c=temp or
http://127.0.0.1/index.php?c=blog or
http://127.0.0.1/index.php?c=welcome now all works fine!

OK, so then it must be the urlrewrite thing, thanks for your help, I think I´ll find my way around now (or otherwise I'll be back)

Suggestion: Maybe this could have been written i the trouble shooting?


Its supposed to be easy, right? - El Forum - 05-19-2008

[eluser]gtech[/eluser]
good point, why not suggest it in the feature requests. Glad you got it going.