Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to be able to do the following:

I will click a URL but the browser will open a local instance of the file at C:/x2.doc.

Can this be done?

share|improve this question
do you have access to the server hosting if so you could i guess redirect to something like file:///C:/x2.doc... – pataluc Jun 20 '13 at 14:39
The quick answer is no. If you click on a URL, the browser will open that URL. If you want to open the local version, type file:///c:/x2.doc in the browser bar – MattDMo Jun 20 '13 at 14:40
@pataluc - no, that really isn't easily doable... – MattDMo Jun 20 '13 at 14:40
@MaddDMo you sure? i can't see why a php redirect <?php header('Location: file:///C:/x2.doc'); ?> or an Apache redirect won't work... – pataluc Jun 20 '13 at 14:43
@pataluc OK, my bad, I suppose that's possible, but it would only work for someone that already had the local file. But still, I get the impression the OP doesn't have access to the server... – MattDMo Jun 20 '13 at 14:55

i was able to get it to work on IE8 with the following Apache conf: (my test with FF21.0 failed)

Redirect /xx/x.doc file:///C:/x2.doc

but i don't very much like that solution, it's not very classy.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .