Running CI without mod_rewrite? - 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: Running CI without mod_rewrite? (/showthread.php?tid=6462) Pages:
1
2
|
Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]simonspoken[/eluser] I'm trying to get CI running on a server without mod_rewrite installed (and it's not possible to get it installed). Is this possible? I've created a controller called "test", and have visited: http://mysite/index.php/test But that tells me "The URI you submitted has disallowed characters." Any ideas how I can do this? Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]xwero[/eluser] do you have a method index in the test class? Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]simonspoken[/eluser] Here is my test.php controller: Code: <?php EDIT: This is a completely fresh install of CI by the way. I've tried 1.6.1 and 1.5.4 so far. Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]xwero[/eluser] And do you see the welcome message or did you remove that? I suggest you start from an unmodified CI and check after each major change you make if it still works. Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]simonspoken[/eluser] The welcome message works if i point it directly at index.php (or just /)/ But if I do this: http://mysite/index.php/welcome It doesn't work. Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]xwero[/eluser] try to change uri_prototcol in the config file Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]simonspoken[/eluser] http://mysite/index.php/test PATH_INFO - The URI you submitted has disallowed characters. QUERY_STRING - Loads default route (Welcome REQUEST_URI - Loads default route ORIG_PATH_INFO - The URI you submitted has disallowed characters. Seems as though none of them work Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]xwero[/eluser] what is the output if you add Code: print_r($_SERVER); Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]simonspoken[/eluser] Added <pre></pre> to make it easier to read: Code: Array EDIT: I had to delete part of the HTTP_ACCEPT line for it to display on the forum, but that shouldn't make a difference EDIT 2: And just to clarify, I'm running PHP 5.2.3 Running CI without mod_rewrite? - El Forum - 02-28-2008 [eluser]xwero[/eluser] For some reason you are getting no variables through. If you put and normal php script where the index.php is and then you try index.php?test=1 and index.php/test. Look if it appears in the $_SERVER array. |