|
To override the default file associations and reorient the mapping of
given file extensions to user-specificied handlers, the
AddHandler directive can be invoked
Suppose that all .html files in the current directory and
subdirectories are to be executed as PHP scripts (assuming that they
actually are PHP scripts!), you can use:
AddType application/x-httpd-php .html
It is possible with the AddType
directive to project a given filename onto a specific
MIME type.
To force the mapping of all files with the .foo extension onto
the application/x-foo-type type, use:
AddType application/x-foo-type .foo
We regularly register new default MIME types. If you think a given
MIME type is worthy of server-wide recognition, please let us know!
|