I am using the Zend framework with requires a Rewrite rule to send everything to index.php. Fine. I have that working. However, I also have a blog on my site which needs to have this redirect disabled. My current rewrite rule looks like:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|pdf|swf|flv)$ /index.php
RewriteRule (feed|media|files).*(gif|jpg|png|pdf)$ /index.php
And I want to prevent rewrites from happening when I go to /documentroot/blog
How do I create this exception? I already tried
<Directory /documentroot/blog>
RewriteEngine off
<Directory>
and that breaks the original rewrite rule by creating a loop.
To make matters worse, my boss wants pretty URLs to work on the /blog subdirectory.
Any ideas?