Running CI without mod_rewrite? |
[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?
[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.
[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.
[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.
[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
[eluser]xwero[/eluser]
what is the output if you add Code: print_r($_SERVER);
[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
[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. |
Welcome Guest, Not a member yet? Register Sign In |