RedirectPermanent directive


Purpose

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

This directive is functionally the same as the Redirect directive, except RedirectPermanent sends a 301 Moved Permanently response code while Redirect sends a 302 Moved Temporarily response code.


Syntax

RedirectPermanent virtual URL

virtual is the translated location which should trigger a redirect..

URL is the URL of the new document.

Several RedirectPermanent directives may appear in the configuration file.


File

srm.conf

Example

RedirectPermanent /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 301 (Permanently Moved).


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