htaccess edit for vcf / vcard downloading
-
Hello WordPress geniuses,
I want to offer my vCard for download on my blog by clicking on an icon. Unfortunately when you click on the icon it offers up the simple txt of the vCard instead of offering a download window like other files (.pdf or .zip).
I’ve read that I can edit my .htaccess file with one line of code in order to instruct the server to treat the .vcf file like a .zip file. Here is the code I have found to add to the .htaccess file:
AddType application/octet-stream vcf
Trouble is, I have no idea where in the .htaccess file to add this one line of code without breaking anything.
My .htaccess code current reads:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
Any help would be greatly appreciated. Where would I add the one line of code?
- The topic ‘htaccess edit for vcf / vcard downloading’ is closed to new replies.