Add Mime-Types using .htaccess

by Rekha 2010-02-09 14:32:27

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.

For example if you need to configure your server to display ASX files:

AddType video/x-ms-asf asf asx


For windows media audio WMA

AddType audio/x-ms-wma .wma


There is one more useful feature of the AddType directive. Most of you most probably know that Internet Explorer opens MS Word, Excel, PDF and some other files inside a browser window. To force the browser to download the file you can use AddType to change the document type:

AddType application/octet-stream .doc .xls .pdf

Tagged in:

789
like
0
dislike
0
mail
flag

You must LOGIN to add comments