Zend Framework .htaccess

software development



I have a Zend Framework application on blah.mydomain.com and I need some help with the .htaccess config, since we’re not giving access to the vhost configs.

I would also like to point out that I read the only article on Zend Framework on the Dreamhost wiki
[ at http://wiki.dreamhost.com /Zend_framework#Step_9._Set_up_a_project ] and have tried setting up my .htaccess file as described, but it didn’t work.

I have this Zend app running on a virtual Ubuntu server box with no problems. Here is local vhost block:

<VirtualHost *:80>
DocumentRoot /var/www/mydomain/public
ServerName mydomain.local
ServerAdmin myemail@gmail.com
<Directory “/var/www/mydomain/public”>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css

SetEnv APPLICATION_ENV development

And here’s the .htaccess file in the root of my project on the Dreamhost server:

RewriteEngine on
RewriteBase /
RewriteRule !.(js|ico|txt|gif|jpg|png|css)$ public/index.php

Can anyone help me make this work please?