Is it possible that .htaccess mod_rewrite rules are inhibiting CodeIgniter route rules? - 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: Is it possible that .htaccess mod_rewrite rules are inhibiting CodeIgniter route rules? (/showthread.php?tid=45705) |
Is it possible that .htaccess mod_rewrite rules are inhibiting CodeIgniter route rules? - El Forum - 10-02-2011 [eluser]Dr. Seuss[/eluser] I'm getting unexpected behavior from CI routing rules. My routes are: Code: $route['default_controller'] = "dflt"; Simple enough. I have a controller folder, like: Quote:(dir) home My .htaccess file is an attachment to this post. When I plug in the "full url", I get the expected result. For instance, when I do: www.mydomain.com/home/home I get the output from "index". When I do: www.mydomain.com//home/home/out I get the output from the "out" function. What I am expecting, however (from the routes file) is to be able to do www.mydomain.com/home/out and get the resultthat I am currently getting by "www.mydomain.com//home/home/out". TL;DR: My routes don't seem to be altering the default behavior of CI at all. Does my removing the "index.php" via mod_rewrite alter the behavior of the way routes work? |