|  Home

Web & Classic Hosting Help

Configure MIME types

Customers may create custom MIME types on a Linux shared hosting account by adding the AddType directive to an .htaccess file. Customers can create custom MIME types on a Windows shared hosting account by modifying the web.config file.


The .htaccess file should reside in the same directory as the designated files. The .htaccess entry has the following syntax:

AddType mime-type ext

Using the .wmv file extension as an example, the .htaccess entry would be the following:

AddType video/x-ms-wmv wmv


The web.config file should be located in the root directory of a Web site. Using .mp4 and .mpv as examples, adding MIME types with IIS 7 looks like this:



                  <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
                  <mimeMap fileExtension=".m4v" mimeType="video/m4v" />



Was This Article Helpful?
Thanks for your feedback. To speak with a customer service representative, please use the support phone number or chat option above.
Glad we helped! Anything more we can do for you?
Sorry about that. Tell us what was confusing or why the solution didn’t solve your problem.