Basics of Htaccess Part – III

It's only fair to share...Share on Facebook0Share on Google+15Tweet about this on Twitter0Share on LinkedIn3Pin on Pinterest1Digg thisShare on StumbleUpon12

Add MIME types using .htaccess

How to add MIME types using .htaccess

In our previous article Basics of Htaccess Part – II, we have understand How to enable compression using .htaccess. In this article we will learn how to add MIME type using .htaccess. 

MIME stands  Multi-purpose Internet Mail Extensions. It is used to classify the file types on Internet. Sometime web hosting account is not configured to server certain mime types with the proper content type. Then browser can not understand the file types of a file. Using .htaccess, we can instructs to browser, what file type is?

To setup a MIME type, we have to create a .htaccess file and specifies that we are adding a MIME type using keyword ‘AddType‘.

Here is a list of various MIME types and some associations:

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">