ForceType
ForceType media-type
directory, .htaccess
Given a directory full of files of a particular type,
ForceType
will cause them to be sent as
media-type
. For
instance, you might have a collection of .gif
files in the directory .../gifdir, but you have
given them the extension .gf2 for reasons of
your own. You could include something like this in your Config file:
<Directory <path>/gifdir> ForceType image/gif </Directory>
You should be cautious in using this directive, as it may have unexpected results. This directive always overrides any MIME type that the file might usually have because of its extension — so even .html files in this directory, for example, would be served as image/gif.