Changed error message for unsupported file types
Add explicit file extension matching rewrite conditions...
...and use request uri to fix .htaccess in subdirectories causing 404 for rewrites