MIME Types in cPanel
The MIME Types feature in cPanel lets you define how web browsers handle specific file extensions. For example, you can use it to tell browsers to open uncommon file types (like .svg or .json) with the correct application or to serve custom file types correctly from your website.
Step 1 — Log in to cPanel
- Open your cPanel login page (for example,
https://yourdomain.com:2083). - Enter your username and password, then click Log in.
Step 2 — Access the MIME Types Interface
- In the Advanced section of the cPanel home screen, click MIME Types.
- The page will display two sections:
- Create a MIME Type — to add a new type manually.
- System MIME Types — a list of default types that apply globally on the server.
Step 3 — Create a New MIME Type
- Under Create a MIME Type, locate the following fields:
- MIME Type — Enter the correct type name that tells browsers how to interpret the file (for example,
application/json,image/svg+xml, ortext/x-python). - Extensions — Enter one or more file extensions associated with that MIME type, separated by spaces (for example,
json svg py).
- MIME Type — Enter the correct type name that tells browsers how to interpret the file (for example,
- Click Add to save your new MIME type.
Your new entry will appear in the User Defined MIME Types list below.
Step 4 — Manage Existing MIME Types
In the User Defined MIME Types table, you can:
- Edit an existing MIME type to update its file extensions or MIME value.
- Delete a MIME type if it’s no longer needed.
System-defined MIME types cannot be modified or removed.
Step 5 — Test Your Configuration
After adding or editing MIME types:
- Upload a file of the specified type to your website.
- Access it via your web browser (for example,
https://yourdomain.com/sample.json). - Confirm the browser recognizes and processes the file correctly.
If the file downloads instead of opening, double-check the MIME type spelling or the associated file extensions.
Notes and Best Practices
- MIME types help browsers interpret files correctly — incorrect types can cause errors or downloads instead of inline display.
- Avoid overriding essential system MIME types unless absolutely necessary.
- Always back up your
.htaccessfile or configurations before making significant MIME changes.
Need Help?
If you have trouble adding or testing MIME types, contact Thamara Support for further assistance.
Updated on: 02/11/2025
Thank you!