Add Mime Type

The MIME (Multipurpose Internet Mail Extensions) types represent the file types you can open with your web browser. Here you can also change the file extensions for your website. Your own file extensions parsed as PHP or SHTML on your website helps you to avoid giving a potential hacker even the slightest clue as to what Scripting language is used.

You can specify the MIME type by setting the radio button to one of the following:

- Predefined. Select one of the pre-defined MIME types from the drop-down menu.
- Custom. Type the MIME type you need into the relevant textbox.

To change the PHP files' extensions on your website:

- Specify the MIME type by setting the radio button to Predefined and select the application/x-httpd-php MIME type from the drop-down menu.
- Type the new extensions for PHP files into the Website Extensions textbox. You can type one or several arbitrary extensions here (like .myext, or .xyz), divided by spaces.

To change the SSI files' extensions on your website:

- Specify the MIME type by setting the radio button to Predefined and select the text/html MIME type from the drop-down menu.
- Type the new extensions for SSI files into the Website Extensions textbox. You can type one or several arbitrary extensions here (like .myext, or .xyz), divided by spaces.

You can select a handler from the Handler drop-down menu.

The built-in handlers in the standard distribution are the following:

- default-handler: Send the file using the handler designated by default to handle static content;
- send-as-is: Send file with HTTP headers as is;
- cgi-script: Treat the file as a CGI script;
- imap-file: Parse as an imagemap rule file;
- server-parsed: Parse for server-side includes;
- type-map: Parse as a type map file for content negotiation.

Note: You can assign either a MIME type, or a handler, or both to a file extension.

When ready, click the Add button.