Adding MIME Types by .htaccess file

In case your web hosting account is not configured to server certain mime types with the proper content type. You can change this using .htaccess file.A common occurrence with MP3 or even SWF files. Simple enough to fix:

AddType application/x-shockwave-flash swf;

AddType is specifying that you are adding a MIME type. The second part is the MIME type, The application string is the actual parameter of the MIME you are adding, and the final little bit is the default extension for the MIME type you just added, in our example this is swf for ShockWave File.

AddType text/html htm0

the final part is the file extension, in this example ‘htm0’.