Why is my htaccess file preventing access to my MP3 file?

Posted by Andrew on Server Fault See other posts from Server Fault or by Andrew
Published on 2010-05-06T14:44:58Z Indexed on 2010/05/06 14:48 UTC
Read the original article Hit count: 220

Filed under:
|

My Zend Framework application has a public directory which contains an htaccess file. If the file isn't found in the public directory, it routes the request through the application. I have an MP3 file within my public directory, but the htaccess file is routing the request through the application!

Do you see anything wrong with my htaccess file?

AddDefaultCharset utf-8

RewriteEngine on
RewriteRule  ^Resources/.*         -  [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css|htm|html|php|pdf|doc|txt|swf|xml|mp3)$ /index.php [NC]

© Server Fault or respective owner

Related posts about apache

Related posts about .htaccess