Skip to the content
Documentation

URIMatchType

No ratings yet

Summary

Configures the URI match access method

Usage

URIMatchType=disabled|map|element|text|regexp

Description

  • disabled - Disables URI matching. If URI matching is present in the MatchOrder setting it will be ignored.
  • map - Select the siteaccess to use based on the first element of a given URL. Specify the mapping between the URL element and the siteaccess to use with the URIMatchMapItems setting.
  • element - Select the siteaccess to use based on the elements separated by "/" in the location part. If you specify "URIMatchElement=N", the system will take N parts of the URL (separated by "/") and replace slashes with underscores in the resulting string.
  • text - Match URL using pre- or post- substrings (URIMatchSubtextPre, URIMatchSubtextPost).
  • regexp - Works similarly to the element setting but you can specify the delimiter with a regular expression. The settings URIMatchRegExp and URIMatchRegExpItem control how to split the URL and what part to use for the siteaccess.

Examples

Example 1 (element matching)
URIMatchType=element
URIMatchElement=1

With this configuration the second element (the first element is element 0) of the URI will be used as the siteaccess. For example, in the URL "http://www.mysite.com/news/site/admin/content/view/full/32" the siteaccess name will be "news".

Example 2 (element matching)
URIMatchType=element
URIMatchElement=3

With this configuration the second element (the first element is element 0) of the URI will be used as the siteaccess. For example, in the URL "http://www.mysite.com/news/site/admin/content/view/full/32" the siteaccess name will be "news_site_admin".

Example 3 (map matching)
URIMatchType=map
URIMatchMapItems[]=myadmin_de;admin_de
URIMatchMapItems[]=MYADMIN_DE;admin_de

This will tell the system to use the "admin_de" siteaccess when the first element of a given URI is 'myadmin_de' or 'MYADMIN_DE'.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.