RedirectTemp directive


Purpose

The RedirectTemp directive creates a virtual document on your server, and any accesses to it will be redirected to a new URL.


Syntax

RedirectTemp virtual URL

virtual is the translated location which should trigger a redirect. This directive is the same as the Redirect directive.

URL is the URL of the new document.

Several RedirectTemp directives may appear in the configuration file.


File

srm.conf

Example

RedirectTemp /dir1 http://newserver.widget.com/dir1

This would cause requests for /dir1 to be redirected to the new location, http://newserver.widget.com/dir1, using response code 302.


[Back] Return to Resource Configuration File Overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / Last Modified 7-12-95