CodeIgniter Forums
Strange behavior with URLs... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Strange behavior with URLs... (/thread-43290.html)



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