http.server -> http -> redirections

Description

HTTP web application that serves 301 or 302 redirections.

Simple configuration

Name Type Default value Description
location string The path or set of paths which will be handled by the web application.

Composite configuration

Name Description
matches A list of regular expression matches that the redirector will redirect.

Example

			redirections {
				location = /redirect-paths/

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