The redirect rule specifies that if a component of a URL matches the template, the request is redirected to the URL defined in the result field.
To add a redirect rule in the /etc/httpd.translations file, complete the following steps.
If you use asterisks (*) as wildcard characters in the template field, the wildcard character matches zero or more characters, including the slash (/) character.
If you use asterisks as wildcard characters in the result field, the wildcard character represents the text expanded from the match in the template field. You should include the wildcard character in the result field only if you use a wildcard in the template field.
If you use multiple wildcard characters, the first one in the result field corresponds to the first one in the template field, the second one in the result field corresponds to the second one in the template field, and so on.
The following redirect rule entry in the /etc/httpd.translations file causes the filer to redirect Common Gateway Interface (CGI) requests to another HTTP server, named cgi-host. This is essential for calls to the /cgi-bin directory because the filer does not execute CGI requests.
redirect /cgi-bin/* http://cgi-host/*
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00323
File: http6.htm
Last updated: 01/15/03 15:45:55