http.server -> http -> redirections -> matches

Description

Regular expression matches for the redirector web application.

Ancestor

The matches composite property is contained within redirections.

Simple configuration

The matches composite property can contain any conforming simple property.

A conforming simple property represents a redirection specification. The key of such a property is a regular expression defining the set of possible paths that will be redirected. The value of such a propery is the redirection path.

The regular expression may contain capture groups. The text of these capture groups are added to the request variables, with names $1, $2, $3, etc.

The redirection path may contain any previously defined request variables, including the variables defined for the capture groups.

Composite configuration

The matches composite property does not contain any composite configuration.

Example

			redirections {
				location = /redirect-paths/

				matches {
					^/redirect-paths/(.*)$ = /redirected/$1
				}
			}