htaccess causing server error 500
问题 I have a Zend Framework application with a .htaccess file in the root directory, directing all traffic to the /public directory, where index.php resides. This is the contents of the .htaccess : RewriteEngine On RewriteRule ^\.htaccess$ - [F] RewriteCond %{REQUEST_URI} ="" RewriteRule ^.*$ /public/index.php [NC,L] RewriteCond %{REQUEST_URI} !^/(upload|img|js|css|less)/.*$ RewriteCond %{DOCUMENT_ROOT}/public/upload%{REQUEST_URI} -f RewriteRule ^(.+\.(jpg|png|mp3))$ /public/upload%{REQUEST_URI}