Wednesday, January 27, 2010

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.

No comments:

Post a Comment