URI/Routing//Default Controller/Htaccess Issue (dev. to live problems) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: URI/Routing//Default Controller/Htaccess Issue (dev. to live problems) (/showthread.php?tid=16794) |
URI/Routing//Default Controller/Htaccess Issue (dev. to live problems) - El Forum - 03-16-2009 [eluser]underskor[/eluser] For some reason, /controller/method/param always shows my default controller, but if I use /index.php/controller/method/param, it loads the correct controller. This setup worked as intended 100% locally, but when uploaded to live server this issue was discovered. I'm fairly sure .htaccess is being parsed and mod_rewrite is enabled. Using incorrect syntax in .htaccess throws error 500's which would lead me to think it's being parsed, and mod_rewrite is enabled according to this test.Can't figure out what the difference between the two servers is. .Htaccess: Code: DirectoryIndex index.php Code: $config['index_page'] = ""; Anyone have any ideas/run into this problem before? URI/Routing//Default Controller/Htaccess Issue (dev. to live problems) - El Forum - 03-17-2009 [eluser]underskor[/eluser] The following did the trick. Code: //Change Thanks for all your replies! URI/Routing//Default Controller/Htaccess Issue (dev. to live problems) - El Forum - 03-17-2009 [eluser]ppardo[/eluser] I got the same problem, but change uri_protocol didn't work. Has anyone any other ideas? URI/Routing//Default Controller/Htaccess Issue (dev. to live problems) - El Forum - 09-20-2009 [eluser]Tim Brownlaw[/eluser] [quote author="underskor" date="1237295502"]The following did the trick. Code: //Change Thanks for all your replies! [/quote] I've just experienced the same dilemma and the above solved it for me too! Thanks a ton. I was running out of obvious options! Now back to work! |