Hyperlink to Local Files

Soldato
Joined
30 Nov 2005
Posts
3,084
Location
London
Hey,

I'm currently producing an Online Intranet that will be available outside via a web connection and internally.

Is it possible to link to local drives via Hyperlinks?

I've tried variations of these:

Code:
<a href="file://localhost//C:/etc etc">file://localhost//C:/etc etc</a>

But while they work locally, as soon as I upload to my host they stop working.
 
Soldato
OP
Joined
30 Nov 2005
Posts
3,084
Location
London
Perhaps I haven't explained myself well enough.

The Intranet will be online accessible outside the office and anywhere in the world.

When I click on the hyperlink when the HTML file is stored locally (i.e. on my Desktop for example), the file/folder on the C Drive will open.

As soon as I upload the HTML file to my web host, the link no longer opens the file/folder on the C Drive.
 
Soldato
OP
Joined
30 Nov 2005
Posts
3,084
Location
London
You don't need the 'localhost' part. file:///c:/etc etc should work.

I'd recommend you use relative URL's as much as possible though - otherwise you end up in a mess when relocating to a different drive or directory.

EDIT: Ignore me. I re-read your original post. DON'T link to a file system if this is going on the internet. Really really bad idea .... Make everything a relative URL then put it up.

I've tried with or without localhost, it doesn't work as soon as I upload to the server.

Why is it a bad idea? The intranet is password protected? It's for people accessing it internally even though it's hosted online.

Are the files hosted on the server or on a local computer?

Local computer.
 
Back
Top Bottom