Match a Specific File

To match a specific filename, the syntax is:

<match:filename value="file.ext" nocase="off">

The value attribute takes a string that is the exact filename to match.

The nocase attribute is a Boolean to specify whether or not the match should be case-sensitive. A setting of “on” makes the match case-insensitive. The default is “off.”

The following metadata example matches the index.html file in the root directory of a domain only.

<match:this-dir value="This Directory Only">
    <match:filename value="index.html">