OO MIME types and .htacess

Recently at one forum there was a need to make server recognize OpenOffice MIME types as binary files which belong to the certain application, while it was treated as plain text (resulting in showing the file as smth totally messy).

The solution was to edit file .htacess, adding there the following line on the end of the file:

AddType application/vnd.oasis.opendocument.text .odt
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.presentation .odp

Voi la, it worked, now attempting the download user gets a download window!

No comments: