Vcards and mime types

How to make a .vcf file down loadable?

Problem: If you link a .vcf file on a page, it shows as a text file instead of asking for a download.

Solution: In order to make the .vcf file download-able, you need to add the AddTye directive in the .htaccess file as follows:

AddType text/x-vcard .vcf

Save the file and that’s it.

This entry was posted on Monday, November 9th, 2009 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

One Response to “Vcards and mime types”

  1. Cerise

    Thank you for the tip! Most useful.