Anyone know how to create downloadable VCard (.vcf files) links in Joomla! 1.7? I can't figure it out. I seem to be able to attach any other sort of file, but not .vcf files. FYI, .vcf IS allowed in my Media Manager.
I posted on the Joomla! forum, but no response. Since VCards are ALL OVER the internet, I'm sure this is possible. I must be overlooking something.
Okay, after much scrounging around, I figured this one out. I don't understand it, but here's what I did:
1. Create a folder for your .vcf files.
2. Put all the Vcards you are dealing with in there.
3. Create a blank document and add this:
AddType text/x-vcard .vcf
4. Save file as ".htaccess".
5. Upload to the same folder as the Vcards.
You should now be able to link the Vcards for download. Evidently, the problem should be able to be solved by simply adding the "AddType" text to the root .htaccess file, but this was not working for me.
Not Found
The requested URL /public_html/images/vcardfolder/bartell.vcf was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I'm probably doing something stupid. Any suggestion is greatly appreciated.
I created a .txt file with the prescribed language inside, named it ".htaccess", saved it in western ascii, removed the .txt at the end by renaming the file to say only .htaccess, uploaded it in an ascii transfer via ftp. Still not working. Is that essentially what you did? Thanks!
Thank is a clever idea. I am glad you mentioned it.
I don't know a whole lot about .htaccess files, or references to directory structures.
Today I learned that one of my mistakes has been thinking that the .htaccess file used relative paths rather than the absolute paths that they actually use.
I noticed you mentioned-
The requested URL /public_html/images/vcardfolder/bartell.vcf was not found on this server.
If you just want to figure it out (your solution was great), you might try either
a. not including /public_html/ in the path, or
b. including the foot folders above /public_html/ which in my case (it depends on the web hosting co) is something like /home/accountname/.