![]() |
Codeigniter URLs not working - 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: Codeigniter URLs not working (/showthread.php?tid=9427) Pages:
1
2
|
Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bikuta[/eluser] I just copied over a copy of CI 1.6.2 to my webserver and the default page comes up fine, however when I add index.php/welcome, it gives me a 404 page not found error. I thought doing that is supposed to call the welcome controller. Could it be because I'm running it on an older version of PHP/Apache? Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]Jamie Rumbelow[/eluser] Try changing the uri_request method in your config file to REQUEST_URI. Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bikuta[/eluser] Nope I tried all the other values as well, still not working. I put the CI installation in a sub folder, i.e., not in the root folder, would that make a difference? Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]Yash[/eluser] I put the CI installation in a sub folder, i.e., not in the root folder, ?? yes this can be ur problem.. give me ur web directory tree Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bikuta[/eluser] httpdocs - .. - .. - .. - hopechurch -- obs does that help? what exactly do you need when u say directory tree? So basically 'obs' is the folder that contains the CI application. Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bramb79[/eluser] I think you have to be a little more specific here. Your site is in the "obs" folder, you are viewing your site at: http://www.yoursite.com/obs/index.php ? You mention one page working (the default page) but not your welcome controller: index.php/welcome/ (try adding the slash at the end!)? What is your default page then? Your default controller is defined in your Routes config file? Try adding the slash please (so index.php/welcome/). If that does not work, please give more information. Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bikuta[/eluser] my site looks like this: http://www.yoursite.com/hopechurch/obs/index.php the default controller is still welcome, I have not changed anything from the default CI installation. I'm just trying to make sure it's working before I start implementing my code. Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bramb79[/eluser] Did you try adding the slash? Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bikuta[/eluser] yes I did, no joy Codeigniter URLs not working - El Forum - 06-25-2008 [eluser]bramb79[/eluser] Yeah, that should not have made a real difference (but worth trying). So http://www.yoursite.com/hopechurch/obs/index.php does display your welcome controller, but http://www.yoursite.com/hopechurch/obs/index.php/welcome does not display anything? Or both are not displayed? I am assuming the latter. Did you check file permissions on the folders/files? Did you try a .html file (maybe php is not allowed)? Did you check if there is a .htaccess (or apache config) that is not allowing any new subfolders? Sorry for the amount of questions but I am puzzled here as well. |