<Files> directive

Description: Enclose directives that apply to matched filenames
Syntax: <Files filename> ... </Files>
Context: server config, virtual host, directory, .htaccess


The <Files> directive limits the scope of the enclosed directives by filename. The filename argument should include a filename, supports ? and * wildcards and regular expressions with the addition of the ~ character.


<Files index.*>
   # ... directives here ...

<Files ~ "\.(gif|jpe?g|png)$">
   # ... directives here ...

Don't forget to include RewriteEngine on directive in every <VirtualHost> tag or enclosed rules will not be applied.