Link to home
Start Free TrialLog in
Avatar of khaledc
khaledc

asked on

Hyperlink to an image

Hi,
I am new to website development. I am using Publisher to build my website. I am trying to setup a hyperlink for a photo on my domain directory (e.g: mypicture.jpg). This picture exists under  "ftp.mydomain.com\public_html\images\". I am under the impression that if I set the hyperlink to be "http://www.mydomain.com/images/mypicture.jpg" then my picture should be found. However, I am getting a FIle not found error. Any idea what I am doing wrong?
Your help is appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Greg Besso
Greg Besso
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of khaledc
khaledc

ASKER

The directory  "\images" is under my Public_html directory, which (what I am assuming) is my HTML web server. I am using Publisher (which is clumsy), is there a way where I can make this software understand the link above?
Regards.
You should just test the URL to see if it works. Who is providing you the FTP and/or HTTP server storage? Are you hosting it on your own computer and internet connection, or uploading to some provider?

FTP is one thing, HTTP is another. You could test your HTTP stored images via ...

http://domain.suffix/folder/file.extension

If the image doesn't load directly in the browser, it won't load when linked with an IMG tag.
Avatar of khaledc

ASKER

I tested the link and it is returning "File Not Found". My server storage is at an ISP (I have a domain). I managed to publish my homepage and so forth using "index.html", what I am trying to do is to try to point to upload an image associated with a link on my page. I tried to put the image inside the same directory where my "index.html" but to no avail. The way I understand it now is that there is some permission issue associated with the image file I am trying to point to!
Well, if the file is uploaded and accessible, it should work. Did you have to perform any "publish" kind of steps when uploading other files to your storage provider?  Do they provide any knowledgbase or support contacts? Who is the ISP / provider you're using?
Avatar of khaledc

ASKER

No, there was no need for "publish" steps. I know the ISP provider and what I have is a Unix type account with them (Can be run by Windows too).
So your .html/.htm files that are FTP'd to this public_html file are displayed when you access them with a URL, but the .jpg/.gif/.bmp etc... files are NOT accessible when uploaded to this same directory?

Avatar of khaledc

ASKER

Correct
Have you contacted your ISP / provider regarding this? It sounds like its either a configuration issue on your uploaded files (permissions, rights, sharing), or it could be that you might be using the wrong path when referencing the files, or perhaps it's not actually an http share or has some restrictions.

I would email the ISP support for this. On another note though, would you share the actual path and file info so me/someone else could try accessing from here?
Avatar of khaledc

ASKER

I will do that thanks for the help.