If you can set up a virtual host you can define the mod_rewrite rules in it
and you don't need the .htaccess.
<VirtualHost *>
ServerName app
DocumentRoot "/wwwroot/www-php/projects/app/public"
RewriteEngine off
<Location />
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
</Location>
</VirtualHost>
Cheers
holo
2009/5/12 David Mintz <[email protected]>
> Nevermind!
>
> Let this be a lesson to other fools like me: when you set up a virtual
> host and start playing, take your time and do it right. My vhost was not
> parsing .htaccess because I hadn't said AllowOverride All for my doc root
> directory on the filesystem. So what was happening was that when I accessed
> / , it "worked" because I was lucky: the server was processing index.php
> and rendering /index/index. When I tried to access /anything/else it was 404
> whether the controller/action existed or not.
>
> On Tue, May 12, 2009 at 11:04 AM, David Mintz <[email protected]>wrote:
>
>> I created the skeleton with zf. Now I am supposing that if you point your
>> browser to myproject/non/existent you should get an error courtesy of the
>> error handler plugin/ErrorController. But I get a blank screen.
>>
>> Do you have to explicitly register Zend_Controller_Plugin_ErrorHandler
>> with the front controller and if so, how?
>>
>> (I could swear I saw someone demonstrate this in a previous thread but now
>> I can't find it.)
>>
>> Thanks.
>>
>>
>> --
>> David Mintz
>> http://davidmintz.org/
>>
>> The subtle source is clear and bright
>> The tributary streams flow through the darkness
>>
>
>
>
> --
> David Mintz
> http://davidmintz.org/
>
> The subtle source is clear and bright
> The tributary streams flow through the darkness
>