URL problem |
[eluser]Martin Penev[/eluser]
Hello there, I'm just trying to setup a test installtion of CI. I have tried to run a test function that has been given as a example in the user guide. You know, the one with the blog controller. I've copied and written the desired code and tried to run. The moment I tried to run the script by calling this URL Code: http://www.jknight-studio.net/testumgebung/codeigniter/index.php/blog/index/ it didn't work. Calling this URL works: Code: http://www.jknight-studio.net/testumgebung/codeigniter/index.php?blog/index/ The difference is the Slash and question mark. With the slash, it doesn't work. With the question mark, it does. My Config values: $config['uri_protocol'] = "AUTO"; used every possible value, still didn't work $config['enable_query_strings'] = FALSE; Where is the problem here?
[eluser]coolfactor[/eluser]
Are you on a Windows server? They can be problematic with this issue. You might try playing with the "uri_protocol" setting in config/config.php to see if one of the other settings works.
[eluser]Martin Penev[/eluser]
No, actually it's linux. I tried every possible url_protocol value, still doesn't work. What else could be the problem? Does it anything have to do with the base_url? ($config['base_url'] = "http://www.jnight-studio.net/testumgebung/codeigniter/";)
[eluser]nanno[/eluser]
I too am having this same exact problem. If I change my .htaccess file to this Code: RewriteEngine On Everything works just fine. I still would love to get this working though. I am also on a Linux server running CI 1.5.4.
[eluser]Martin Penev[/eluser]
Huh? Did it work? 'Cause first you way it works fine, that you say you would love to get this working.
[eluser]nanno[/eluser]
Sorry I wasn't clear. I had a problem displaying the standard CI URIs. URIs like : http://www.test.com/index.php?blog/view would display just fine, but if I replaced the "?" in the path with the preferred "/" (http://www.test.com/index.php/blog/view) it would give me 404 errors for every page but the default controller. I did however find a fix for my server last night on this thread. Adding: Code: <Files "index.php"> to my .htaccess file solved all the problems. Hopefully that clears things up.
[eluser]coolfactor[/eluser]
Ah, AcceptPathInfo.... yes, I believe that is enabled on most servers, but occasionally it is not. Good find! |
Welcome Guest, Not a member yet? Register Sign In |