mike Posted January 23, 2004 Posted January 23, 2004 I created a subdomain called awesomeimages under my public_html. Uploaded all the html pages to the awesomeimages folder. Created a folder under awesomeimages called "images" and uploaded a group of photos to it. Made sure the img src= was /images/whatever.jpg for all photos, but they don't show up. Also have a file called bluemarble.jpg for background which doesn't show up. This file is also in the "images" folder directly under public_html as well as the images folder under awesomeimages and it doesn't show up either. I even tried the path home/public_html/awesomeimages/images/whatever.jpg and nothing works. All the subdomain pages come up fine, but no photos. What have I missed? Sure will be glad to get some TCH help to open my eyes. thanks folks, Mike Rock Sign Quote
Boojum Posted January 23, 2004 Posted January 23, 2004 Made sure the img src= was /images/whatever.jpg for all photos That's the correct format for images in a subdirectory. But for a subdomain, you need, e.g.: "http://awesomeimages.mysite.com/images/whatever.jpg" (absolute URL). The relative URL "images/whatever.jpg" should also work within the subdomain, but if you're having trouble with that, the absolute version may be worth a try. Alternatively, to call images from your root-level public_html "images" folder, try the path "http://www.mysite.com/images/whatever.jpg". Hope this helps. Quote
TCH-Rick Posted January 23, 2004 Posted January 23, 2004 Be sure and check the filenames in the code and on the disk as well. In Linux filenames and directory names are case sensitive. That means if you name something mypic.jpg on the disk and have it as MYPIC.JPG in the code it will not work. Quote
mike Posted January 23, 2004 Author Posted January 23, 2004 Rock Sign Boojum and Rick............... thank you , thank you. I (duh) didn't even think about the "absolute" path so that was the deal alright. Plus I knew better about the case sensitive also and overlooked a couple pics with that malfunction. Thanks alot you guys. tch truly is the king. mike Quote
Boojum Posted January 23, 2004 Posted January 23, 2004 You're quite welcome, Mike. Actually, the only reason I happened to think of using the absolute path was that I recently went through some of the same questions regarding coding hrefs to files in six separate subdomains ... and was lucky enough to be surrounded by folks who in fact know what they're doing in web design—unlike myself. As you said: Rock Sign (I just wonder how long it'll take someone to produce a version of that image in which the "C" and the "H" are transposed.) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.