Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Vcards… hyperlinking and .htaccess

  • Vcards… hyperlinking and .htaccess

    Posted by Kelly Johnson on November 10, 2009 at 5:27 pm

    Hi there-
    I’ve generated some vcards and placed links to them on a web page.

    But, instead of prompting where to save/download to, I get a text version of the actual vcard file.

    I’m guessing this is something related to an htaccess file but I’m not sure what to specify or where.

    The site which will house these files and pages will be at GoDaddy on a linux server.

    Any ideas?

    Jane Hughes replied 16 years, 7 months ago 3 Members · 7 Replies
  • 7 Replies
  • Curtis Thompson

    November 10, 2009 at 5:30 pm

    hello…

    nope – not related to htaccess. i’d guess that your browser knows what that type of content is, so it opens it by itself instead of prompting you as to what you want to do with it.

    you can add a note to users to right-click and save, or you can add a php or other type of script wrapper that forces a download. the latter would require a bit of scripting knowledge, however…

    sitruc

  • Kelly Johnson

    November 10, 2009 at 5:33 pm

    well, hang on…. I found an example this morning of a vcard and it worked on my same machine but my example didn’t.

    Viewing their source, it was a straight hyper link. Let me find that url..

  • Kelly Johnson

    November 10, 2009 at 5:34 pm
  • Curtis Thompson

    November 10, 2009 at 5:37 pm

    hello…

    yup – that’s working as advertised. not sure what i should say?

    (w/o seeing your example, it’s hard to offer anything else, unfortunately)

    sitruc

  • Kelly Johnson

    November 10, 2009 at 5:39 pm

    Thanks… here’s what I was looking for and seems to work:
    https://doncrowley.blogspot.com/2006/11/vcards-mime-types-and-htaccess-files.html

  • Curtis Thompson

    November 10, 2009 at 6:00 pm

    hello…

    ahh – ya. that’ll work too. sorry. sorta spaced the mime type addition in htaccess… :-/

    you might not be able to override that on godaddy, though – apache can control pretty strictly what you can and can’t override in that htaccess file, and so they might not let you add mime types, meaning that your example would never work…

    (so if that works then cool – otherwise, that’s a heads up as to a potential culprit)

    sitruc

  • Jane Hughes

    January 7, 2010 at 2:05 am

    I had this exact same issue with my Vcard links not downloading on GoDaddy’s Linux server. The links worked when on a PC but not using any of the Mac browsers. The problem was solved completely by simply switching from GoDaddy’s Linux platform to their Windows platform. Now the links work perfectly on both PC and Mac!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy