Proper 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 is an example of the cPanel interface.

The above example shows me telling Apache to treat my .html and .htm files as PHP files. This is helpful if your .html files have PHP code inside, but you cannot rename the files to the .php extension; however, this is notably more resource intensive, so use with caution.

MIME types are often used to handle new technologies as they appear. When WAP technology first appeared, no one had these extensions set up on their server. However, with mime types you could have set it up yourself and begun serving WAP pages immediately.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

About Reseller WHM

We provide all resellers with a limited WHM. These limits help us control what actions the...

Learn cPanel

These are great resources we hope will help: Video Tutorials by cPanel Official cPanel User Manual

I want to set the folder for my addon domain to something outside of public_html.

cPanel will allow you to specify a path outside of public_html. If you do not see this option,...

Please read before creating a subdomain.

When you create a subdomain in cPanel, you will be asked to choose the name of the subdomain,...

Please read before creating an Addon Domain.

About addon domains Addon Domains are handled like subdomains as far as the server is concerned,...