FORUMS: list search recent posts

Vcards... hyperlinking and .htaccess

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kelly Johnson
Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 5:27:58 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?



Return to posts index

Curtis Thompson
Re: Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 5:30:17 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


Return to posts index

Kelly Johnson
Re: Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 5:33:09 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..



Return to posts index


Kelly Johnson
Re: Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 5:34:56 pm

here's the example:

http://www.fontstuff.com/mailbag/qfrontpage02.htm



Return to posts index

Curtis Thompson
Re: Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 5:37:10 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


Return to posts index

Kelly Johnson
Re: Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 5:39:30 pm

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



Return to posts index


Curtis Thompson
Re: Vcards... hyperlinking and .htaccess
on Nov 10, 2009 at 6:00:46 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


Return to posts index

Jane Hughes
Re: Vcards... hyperlinking and .htaccess
on Jan 7, 2010 at 2:05:57 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!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]