Note: Currently, it is possible to use .htaccess files only on the central (www.udel.edu) web server. The directions below will not work on the copland (udel.edu) web server.
cd /www/htdocs/directory_name
Note: If you already have a .htaccess file, its contents will be displayed after you type "pico .htaccess." In that case, you will simply be adding the "AddType" line(s) to your .htaccess file, starting on a blank line after the last line of the file.
pico .htaccess
AddType file_MIME_type suffix
Example of a .htaccess file that defines file types for MSWord documents and Excel worksheets:
|
AddType application/msword .doc
|
Example of a .htaccess file that defines the file type for a file you would like the reader to be able to download (substitue your file's extension or suffix for .suffix):
|
AddType application/octet-stream .suffix |
chmod 604 .htaccess
Now that you have completed these steps, all files in this directory that are named according to the rules you specified in the .htaccess file will be presented with the correct identification to your browser. If the material is still not presented correctly, the browser's preferences for applications will need to be configured.