Zend Framework controller load failure puzzle

MikeC

New Member
I have a \[code\].htaccess\[/code\] file that looks like this:\[code\]SetEnv APPLICATION_ENV developmentRewriteEngine OnRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ - [NC,L]RewriteRule ^.*$ index.php [NC,L]\[/code\]If I browse to my site I'm testing with, say http://www.example.com/, the index page loads correctly.This is a Zend Framework application, and therefore it should route things out to my controllers, as it does correctly if I go to http://www.example.com/index/index or http://www.example.com/index, specifying the controller + action, and just the controller, respectively.It also works if I do something like http://www.example.com/index/test, where I've defined another action on the index controller called test.But if I make a \[code\]TestController.php\[/code\] file, and attempt to go to http://example.com/test/, Apache is returning:\[code\]<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /path/to/website/root/public/index.php was not found on this server.</p> <hr> <address>Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.10 with Suhosin-Patch Phusion_Passenger/2.0.3 mod_perl/2.0.3 Perl/v5.8.8 Server at www.example.com Port 80</address> </body></html> \[/code\]Can anyone see what I've screwed up here?Billy3EDIT: The configuration for my site looks something like:\[code\]Alias /MySiteRoot/ "/usr/local/vsites/something/www/"<Directory /usr/local/vsites/something/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all</Directory>\[/code\]
 
Back
Top