How to Configure Custom MIME types in cPanel

Web Hosting in Pakistan

This article describes how to use cPanel to configure custom MIME types for your web site. MIME types are used to specify how certain file types are processed by the web browser.


WHAT ARE MIME TYPES?

MIME types specify how a web browser should handle certain types of files. For example, the application/pdf MIME type instructs browsers to handle files with a .pdf extension as Portable Document Format files. If you have custom PDF files with a .mypdf extension, you could add a custom MIME type so browsers correctly interpret your .mypdf files as PDF files.

Note: People are sometimes confused about the difference between MIME types and Apache handlers. MIME types instruct the browser how to process files, whereas Apache handlers instruct the server how to process files.

 

Note: Before you add a custom MIME type, check the list of MIME types that are already defined for the web site. Adding custom MIME types can easily alter how your web site functions and cause unintended effects.


ADDING A CUSTOM MIME TYPE

To add a custom MIME type, follow these steps:

  1. In the Advanced section of the cPanel home screen, click MIME Types.
  2. In the MIME Type text box, type the MIME type that you want to add. For example, type application/pdf.
  3. In the Extension(s) text box, type the file extension or extensions that you want to add for the MIME type. For example, type mypdf.
  4. Click Add.


DELETING A CUSTOM MIME TYPE

You can delete custom MIME types at any time. However, you cannot delete system-wide MIME types.

To delete a custom MIME type, follow these steps:

  1. In the Advanced section of the cPanel home screen, click MIME Types. The list of custom MIME types is displayed under the User Defined MIME Types heading.
  2. Under Remove, click the red X icon for the custom MIME type that you want to delete.
  3. Click Delete MIME Type to confirm the deletion.



Was this answer helpful?

 Print this Article

Also Read

How To Configure Addon Domains And Parked Domains (Aliases) In cPanel

This article describes how to configure addon domains and parked domains in cPanel....

How To Configure Redirects In cPanel

This article describes how to use cPanel to configure a web page to redirect to a different web...

How to Access E-Mail Accounts Using Client Applications

This article describes how to configure a client e-mail application Note: This...

Using SSL with CloudFlare

This article discusses various options for using SSL on a CloudFlare-enabled account. As a...

How to Configure Custom Apache Handlers in cPanel

This article describes how to use cPanel to configure custom Apache handlers for your web site....

Web Hosting in Pakistan

Powered by WHMCompleteSolution