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 utilizatori au considerat informaţia utilă
Răspunsul a fost util?

Articole similare

How to Connect to the MySQL Database

Note: If connecting from your home computer, you need a MySQL client like Navicat,...

How to log into cPanel

cPanel is used for managing your web hosting account and available on all Microhosting Linux...

Please read before creating an Addon Domain

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

How to generate/download a full backup

A full backup is a backup of all of your files, e-mail, databases, etc. To run a full backup, you...

How to change the password of your cPanel account

There may be times where you would like to change the password of your account. It is...