How can I define MIME types on my Linux/Apache based site?


If you are finding there is a MIME Type that is not defined, you can define this via your .htaccess. The code you need to add is:

AddType MIMETYPE .extension

So for example, to add the MIME type for a QuickTime *.MOV or *.QT file you would do:

AddType video/quicktime .qt .mov

For a very extensive list of what MIME Type Apache supports, please review:

Note: The following link may not be fully formatted correctly for the .htaccess

http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types



Was this content helpful?




© 2014 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER