What are MIME types and how do I add a MIME type to the server ?

MIME types are a standard way of specifying the type of a document.

A web server uses MIME types to tell browsers what type of document the server is sending. For files, the server determines the MIME type by the file's extension (the file extension is the last part of file name, such as .htm for HTML document, or .jpg for JPEG graphic etc).

There is a standard set of MIME types defined at the server level, however, you aren't limited to the types defined there. MIME types may also be added through the use of the AddType directive in your .htaccess files.

How do I add a MIME type ?

A MIME type can be added by creating or adding to the file called .htaccess in the directory containing the document you want to set the MIME type for. The file should contain a line in the following format:
    AddType mimetype ext

    Where:

  • mimetype is a MIME type like application/futuresplash
  • ext is a file extension like spl
i.e. AddType application/futuresplash spl
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

May I upgrade at a later time?

Yes, you can easily upgrade your account at anytime. Simply click "upgrade" in the Client Portal...

How soon can my account be setup ?

For shared hosting services, our system will automatically activate your account and send you...

How do I backup and restore my Website and databases ? How do I move my sites from my current host to Astutium?

If your old host is also using WHM/CPanel then there is a reasonably simple procedure to move...

How do I use SSI (server Side Includes) ?

Web pages that use SSI (server side includes) by convention should be named with the .shtml file...

How Do I Create a RoR (Ruby on Rails) Application ?

To make your first RoR (Ruby on Rails) application in your Astutium Business, ECommerce or...

Powered by WHMCompleteSolution