How to make this .htaccess rule case insensitive?
        Posted  
        
            by alex
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by alex
        
        
        
        Published on 2010-03-26T01:12:55Z
        Indexed on 
            2010/03/26
            1:23 UTC
        
        
        Read the original article
        Hit count: 529
        
This is a rule in my .htaccess
# those CSV files are under the DOCROOT ... so let's hide 'em
<FilesMatch "\.CSV$">
 Order Allow,Deny
 Deny from all
</FilesMatch>
I've noticed however that if there is a file with a lowercase or mixed case extension of CSV, it will be ignored by the rule and displayed.
How do I make this case insensitive?
I hope it doesn't come down to  "\.(?:CSV|csv)$" (which I'm not sure would even work, and doesn't cover all bases)
Note: The files are under the docroot, and are uploaded automatically there by a 3rd party service, so I'd prefer to implement a rule my end instead of bothering them. Had I set this site up though, I'd go for above the docroot.
Thanks
© Stack Overflow or respective owner