Hello, all :)
I have a .htaccess
file that looks like this:
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
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 TestController.php
file, and attempt to go to http://example.com/test/, Apache is returning:
<!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>
Can anyone see what I've screwed up here?
Billy3
EDIT: The configuration for my site looks something like:
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>