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

This is an attempt to fix the issue in #4955. Please test
Can I be the douche and ask we remove the text about the listed extensions. That's the bit of code we've removed I guess