I have my directory structure set up as follows:
Application Root
|-application
| |--configs
| |--controllers
| | |--helpers
| |
| |--layouts
| | |--scripts
| |
| |--models
| |--views
| |--scripts
| |--index
| |--test
|
|--data
| |--session
|
|--public
|--index.php
|--.htaccess
In my controllers directory, I have 2 controllers: IndexController
and TestController
which have identical internal definitions, with 2 methods, indexAction
and testingAction
. When I point my browser to localhost/application
I get the result of my IndexController.indexAction()
but when I go to localhost/test
or localhost/testing
or localhost/test
or really, any other variation, I get a 404 Not Found error.
I'm using the Zend Framework (1.9.6 I believe), and I've confirmed that there is no issue with the various source PHP files in terms of syntax errors.
Why might I be seeing this behavior and what can I do to fix it?
EDIT:
I had another developer send me a full Zend-based application to compare my setup with. There were no apparent differences in terms of the location of files, or the contents of the various configuration files. However, on his site too, I can only access the index page of the site, but none of the internal controllers. He does not have that problem. Is this possibly an issue with my Apache setup?