adapted .htaccess rewrite rules for static resources