Configure the location URL format in redirect responses

When WebSEAL responds to a request with an HTTP 302 redirect response, the format of the URL in the Location header is, by default, expressed as an absolute path. For example:

If the environment requires the use of a server-relative format for the URL in the Location header, we can configure this specification in the WebSEAL configuration file.

Manually add the redirect-using-relative stanza entry to the [server] stanza and set the value to "true":

With this configuration, the above Location header example will now appear as follows:

This hidden configuration option normally defaults to "false".

This configuration change affects all redirect responses generated by WebSEAL. These redirect situations include:

This configuration change does not affect redirect responses that are returned from back-end application servers.

Parent topic: Web server response configuration

Related concepts

Related tasks

Related reference