Home > Help Files > Web > MIME

MIME


To change the content type (as well as possibly other things) of your Web files, you need to

    - create a file called .htaccess in your Web directory (e.g. ~/public_html)

    - add one or more lines like the following to it (the exact content-type and suffix will vary depending on your file type):

      AddType audio/midi mid
      AddType audio/x-midi mid
      AddType audio/midi midi
      AddType audio/x-midi midi

    - make the .htaccess file world readable, e.g. by running

      chmod a+r .htaccess

    - name your files with one of the suffixes that you entered above into your .htaccess file, e.g.

      my-midi-file.mid

 


Comments to consult@newton.berkeley.edu
© 1998-2009 UC Regents