From: Rich Bowen REDIRECT_HANDLER variable.
In the first example, requests for files with a MIME content
+ In this example, requests for files with a MIME content
type of In the second example, requests for files with a file extension of
+ In this example, requests for files with a file extension of
+ Example: MIME type
# Requests for files of a particular MIME content type:
Action image/gif /cgi-bin/images.cgi
- # Files of a particular file extension
- AddHandler my-file-type .xyz
- Action my-file-type /cgi-bin/program.cgi
image/gif will be handled by the
specified cgi script /cgi-bin/images.cgi.Example: File extension
+ # Files of a particular file extension
+ AddHandler my-file-type .xyz
+ Action my-file-type /cgi-bin/program.cgi
+ .xyz are handled by the specified cgi script
/cgi-bin/program.cgi.REDIRECT_HANDLER variable.
In the first example, requests for files with a MIME content +
In this example, requests for files with a MIME content
type of image/gif will be handled by the
specified cgi script /cgi-bin/images.cgi.
In the second example, requests for files with a file extension of
+
+ AddHandler my-file-type .xyz
+ Action my-file-type /cgi-bin/program.cgi
+
In this example, requests for files with a file extension of
.xyz are handled by the specified cgi script
/cgi-bin/program.cgi.