Fun with Rewrite rules and Zend Framework

I ran into a problem with Apache’s mod_rewrite module this afternoon while setting up a Zend Framework web application. I had just setup a virtual host for my app and was setting up rewrite rules to forward requests to ZF’s front controller. However, I wanted requests for existing filesystem resources (such as CSS, JS, and image files) to be served directly by Apache, bypassing the Zend Framework.

 

Loosely following the ZF Quick Start Guide, I copied these rules into my VirtualHost configuration:
Continue reading “Fun with Rewrite rules and Zend Framework”