
Some
web hosts that support custom mime
types provide an easy to use
control panel to help create and
manage custom mime types.
For those web hosts that do not have
an easy method to create and manage
custom mime types, you still may be
able to setup custom mime types
using a .htaccess file.
Step 1:
Create a plain text file using a
text editor such as Windows Notepad.
Step 2:
Add the following text...
AddType
MIMETYPE EXTENSION |
Notes:
- Replace
"MIMETYPE"
with the appropriate MIME
type.
- Replace
"EXTENSION"
with the filename extension you're
using to represent it.
Example: The following line maps
the "audio/midi" MIME type to the
.mid filename extension:
AddType audio/midi mid
Step 3:
Save the file as a plain text
file. Name the file ".htaccess"
Step 4:
Upload the .htaccess file in
ASCII mode to your web space using
an FTP application.
Step 5:
Try it out. Check to see that it
works with your web browser. |