Mariah
Mariah

Reputation: 1103

file html link to a shared folder doesnt work

Hi I have a html link that contains a link to a shared folder, this link works perfectly on my localhost but when I change to a production server goes down, my code is this:

<a href='file://somesharedfolder/anotherfolder'>link to folder</a>

I think it may perhaps be a browser security problem, but I am not sure, any ideas?

Thank you very much.

Upvotes: 0

Views: 536

Answers (3)

Mariah
Mariah

Reputation: 1103

I found the answer, IE does not allow this type of links, when it detects that it is a localhost allow such links to be within the same machine. To achieve this kind of links are allowed on a server that is not a localhost you need to go to the IE security options and add our domain as a safe site, doing this as you can access the link without problem. Thank you all for your responses.

Upvotes: 0

Quentin
Quentin

Reputation: 943510

Modern browsers prevent linking to file: scheme URIs from http: URIs.

Serve all your content over HTTP instead.

Upvotes: 0

Osama Yawar Khawaja
Osama Yawar Khawaja

Reputation: 309

On production side your base url is your hostname

Try doing this

<a href='http://www.yourwebsiteurl.com/somesharedfolder/anotherfolder>link to folder</a>

Upvotes: 1

Related Questions