Strange behavior with URLs... - 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: Strange behavior with URLs... (/showthread.php?tid=43290) |
Strange behavior with URLs... - El Forum - 07-06-2011 [eluser]houdini2232[/eluser] I can't understand why my URLs don't work as expected. I'm using the .htaccess file suggested here: http://codeigniter.com/wiki/mod_rewrite/ These URLs all work: /error /index.php/error/test But this URL does not work. I get a "Not Found" Apache error page: /error/test How can this be? I've implemented this .htaccess file many times on other sites with no issues. I am utilizing MY_Controller, if that makes any difference? Strange behavior with URLs... - El Forum - 07-06-2011 [eluser]houdini2232[/eluser] It should be noted that any bad URL that is only one segment goes to my custom 404 page (the CodeIgniter 404 page). But if I add any second segment, I get the stock Apache 404 page... Strange behavior with URLs... - El Forum - 07-06-2011 [eluser]houdini2232[/eluser] FIXED. It seems like "Error" is a controller name that cannot be used reliably. Any other controller I create and use works just fine. Is there a resource that lists all class names that should be considered "off limits"? Strange behavior with URLs... - El Forum - 07-06-2011 [eluser]CodeIgniteMe[/eluser] CodeIgniter Reserved names |