Welcome Guest, Not a member yet? Register   Sign In
Running CI without mod_rewrite?
#11

[eluser]simonspoken[/eluser]
Sorry, that was me accessing index.php for that.

If I try index.php/test, I get the following:
Code:
[QUERY_STRING] =>
    [REQUEST_URI] => /index.php/test
    [SCRIPT_NAME] => /index.php
    [PATH_INFO] => /test
    [PATH_TRANSLATED] => /Library/WebServer/Documents/test
    [ORIG_PATH_INFO] => /index.php/test
#12

[eluser]xwero[/eluser]
It looks to me
Code:
$config['uri_protocol']    = "REQUEST_URI";
/*or*/
$config['uri_protocol']    = "ORIG_PATH_INFO";
should work
#13

[eluser]simonspoken[/eluser]
Nope. Both of them load the default route only Sad

There's no .htaccess file by the way. Will that make a difference?
#14

[eluser]xwero[/eluser]
I never had problems using CI without .htaccess files so i don't really understand what the reason for this problem is, i'm sorry.
#15

[eluser]simonspoken[/eluser]
No problem. Thanks for your help.

I think it's down to Apache, unfortunately. You might have noticed from the $_SERVER data that I'm running this on my iPhone. Wanted to demo a mobile site we're building later, and I'm not sure how the internet will behave at the location. Wanted to load it onto the iPhone locally so I didn't have to worry about network issues Smile
#16

[eluser]Michael Wales[/eluser]
Definitely odd. I usually do all of my development on Apache w/o using mod_rewrite (or an .htaccess file), and I have never experience this issue.

For those of you who think I am insane: I am trying to convert everyone over to Lighttpd, so no need to worry about the Apache specific stuff during development. :cheese:




Theme © iAndrew 2016 - Forum software by © MyBB