Hyperlink doesn't open file from subfolders
Need a little help guys.
The task is to make a link that points to sub folder within my root website folder.
Example: Root/subfolder/myfile.pdf
I have tried this many different ways such as
subfolder\myfile.pdf
subfolder/myfile.pdf
I have also tried checking and un checking the box that reads
"Correct Address Automatically"
But I still am un able to open this file.
When testing my site I can hover over the link and the footer gives the long path name.
Example: c://username/website/subfolder/myfile.pdf
Within the code from View source from Internet Explore I do not get the full path name. I just get the path I typed in.
Anyone have any suggestions?
Thanks
Bill
Re: Hyperlink doesn't open file from subfolders
subfolder/myfile.pdf is correct.
But you will not see this working from a preview or locally in IE if you have Adobe Reader as your PDF handler due to local zone security restrictions.
Once you upload to your host everything it will be fine.
(NOTE: This local viewing restriction for inline PDF's is not an issue when using alternative PDF readers installed on your PC, FOXIT for example)
Re: Hyperlink doesn't open file from subfolders
The link to the pdf file was just an example.
The real problem is linking to another .htm file with in a subfolder.
Also I plan on making this a Intranet site for our company.
Why is it I can open other .htm file from the root but not from a subfolder?
Thanks
Bill
Re: Hyperlink doesn't open file from subfolders
I reference folders as ../subfolder/file. The ../ means start at the root folder.
Re: Hyperlink doesn't open file from subfolders
I don't think that's quite correct Grace, I believe ../ means one folder up (which may not necessarily be the root directory), so you might have ../../../images/pic1.jpg which would refer to a directory 3 folders up.
Re: Hyperlink doesn't open file from subfolders
Yes this is correct Egg , the two dots .. instruct the server to move up one directory (Relative Paths)
Re: Hyperlink doesn't open file from subfolders
Who came up with the hyperlink underlining convention? That almost every hyperlink has to be underlined, and almost every underlined word is a hyperlink. Where did this originate?
Re: Hyperlink doesn't open file from subfolders
Re: Hyperlink doesn't open file from subfolders
Can you upload some files showing this problem? It's difficult to guess whats wrong.
(./)subfolder/myfile.pdf is correct way to refer to file in subfolder :confused: