Filtering files

As well as the default indexing rules that allow you to filter on file extensions you can also use expression based filtering.

G-Mapper uses standard regular expressions to filter based on the virtual url.

The topic of regular expressions is long and detailed so we have provided some external links below as well as some simple examples that you may find useful.

The below external websites cover the subject in more detail :

Examples

An example of excluding a particular file or folder where the path begins with the pattern :

^/forms/.*$
Excludes any files in the "forms" folder.

^.*_printable_.*$
Excludes any files that contain "_printable_" anywhere in the path.

^.*_Old\.html*$
Excludes any files that end with "_Old.html".
Notice that we put a slash before the dot because normally the dot means any character, but in this instance we want to "escape it" i.e. remove it's special meaning and just match it as a full stop.

Latest blog posts

from Xml Sitemap Generator.org

Read more >>

Share G-Mapper

Please support us by sharing...