Format

Each line in the remap.config file must contain a mapping rule. Content Gateway recognizes three space-delimited fields: type, target, and replacement. The following table describes the format of each field.

Field Description
type

Enter one of the following:

  • map provides the same function as redirect. Use redirect instead.
  • redirect: redirects HTTP requests permanently without having to contact the origin server. Permanent redirects notify the browser of the URL change (by returning an HTTP status code 301) so that the browser can update bookmarks.
  • redirect_temporary: redirects HTTP requests temporarily without having to contact the origin server. Temporary redirects notify the browser of the URL change for the current request only (by returning an HTTP status code 307).
Note: reverse_map is not supported.
target

Enter the origin or from URL. You can enter up to four components:

scheme://host:port/path_prefix

<scheme> can be http, https, or ftp.

strict URL matching flag

Enable Match URL Exactly to force matching to be exact against the entire requested URL.

Without this option, the URL is compared up to the end of the target (From Path Prefix). If there is a match, the redirect is applied. This can cause unwanted matching, when the redirect URL includes the base URL. See Mapping and Redirection.

replacement

Enter the destination or to URL. You can enter up to four components:

scheme://host:port/path_prefix

<scheme> can be http, https, or ftp.

Note: The scheme type (HTTP, HTTPS, FTP) of the target and replacement must match.