Kohana Route fails with a 404 Error
So you are ready to begin your first Kohana project and create your customized Route. You placed the Route right above the default Route created by Kohana and all looks dandy. Then you load the URL and are greeted with a 404 Not Found error! Also you notice it is not the Kohana 404 Error "HTTP_Exception_404".
Go to your Kohana directory and find the file named example.htaccess, rename it to .htaccess. Reload the URL to witness the Kohana Route's magic in action!
Kohana uses the Apache mod_rewrite module for doing all those fancy custom URL stuff, but before it can do that, it has to set some rules in a file called .htaccess; since you did not have the .htaccess file, Kohana's Routes failed.
So always remember and preach others: "The first step of setting up a Kohana application is renaming the example.htaccess to .htaccess".
- What would happen if mod_rewrite is not enabled on your server?
- What is the difference between the 'normal' 404 Not Found error and Kohana's "HTTP_Exception_404" error?