Adding back in a rule to match on specific files for .htaccess

This is an attempt to fix the issue in #4955. Please test