<Files> and <FilesMatch>
<Files file
>
...
</Files>
The <Files>
directive limits the application of the
directives in the block to that file
,
which should be a pathname relative to the
DocumentRoot
. It can include wildcards or full
regular expressions preceded by ~
.
<FilesMatch>
can be followed by a regular
expression without ~
. So, for instance, you could
match common graphics extensions with:
<FilesMatch "\.(gif|jpe?g|png)$">
Or, if you wanted our catalogs treated in some special way:
<FilesMatch catalog.*>
Unlike <Directory>
and
<Location>
, <Files>
can be used in a .htaccess file.