MIME types
Posted by David, Last modified by Ashley L on 19 November 2019 05:24 PM

Adding mime types

Mime types tell browsers how to handle specific extensions. For example, the text/html mime type equates to .htm, .html, and .shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. You can alter or add new mime types specifically for your site (note that you can not alter the system defined mime type values).


Here are the steps:

  1. To access the Mime Types Menu, click on the words "Mime Types" on the main screen of your cPanel interface
  2. Enter the mime type in the blank field under "Mime Type"
  3. Enter the extensions to associate with the mime type in the blank field under "Extension(s)"
  4. Click on "Add" to add this new mime type

Troubleshooting: If the new mime type is not working correctly. Make sure the extension(s) associated with that type are not already defined in another mime type.

Removing mime types
 
If you no longer need a certain file extension to be interpreted in a specific way by your browser, you can remove it from your mime types list.

Here are the steps:

  1. To access the Mime Types Menu, click on the icon above the words "Mime Types" on the main screen of your cPanel interface
  2. Select the Mime Type you wish to remove from the drop box
  3. Click on "Delete" to remove the mime type


Troubleshooting: You can only remove User Defined Mime Types.

 

(343 vote(s))
Helpful
Not helpful