Welcome Guest, Not a member yet? Register   Sign In
Strange behavior with URLs...
#1

[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?
#2

[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...
#3

[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"?
#4

[eluser]CodeIgniteMe[/eluser]
CodeIgniter Reserved names




Theme © iAndrew 2016 - Forum software by © MyBB