Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rossmadden

macrumors member
Original poster
Feb 3, 2011
95
0
Swansea, UK
Hi everyone,

I'm having a problem with my images on my website. It's not complete yet but I wanted to throw it up so I can show the person I'm making it for.

I have set up a directory on my hard drive for all my html/css and media.
so i have
"/documents/websites/
/pictures
/html"

So all my images are sources from that folder, so when i use <a href=" ", I type in the full path. the images work when I load the html file in safari.

I've just uploaded both folders into the public file on the FTP but the images aren't working. the links and everything else work fine. I viewed the source and everything is still patched as if its trying to link to the folders on my hard drive. how do i swap it so it links to the images that are now uploaded by my FTP?

Thanks, Ross.
 
I really do not understand what are you actually asking.

you should be able to visualize your image either using:
"/folder/img.jpg"
if the page where img.jpg resides is at the same level of "folder"

or
"../folder/img.jpg"
if recursive (=folder is at prev level in the folder tree).
 
Hi everyone,

I'm having a problem with my images on my website. It's not complete yet but I wanted to throw it up so I can show the person I'm making it for.

I have set up a directory on my hard drive for all my html/css and media.
so i have
"/documents/websites/
/pictures
/html"

So all my images are sources from that folder, so when i use <a href=" ", I type in the full path. the images work when I load the html file in safari.

I've just uploaded both folders into the public file on the FTP but the images aren't working. the links and everything else work fine. I viewed the source and everything is still patched as if its trying to link to the folders on my hard drive. how do i swap it so it links to the images that are now uploaded by my FTP?

Thanks, Ross.

can you provide actually links to your html files. it will make it easier to figure out what is going on.

M
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.