Jump to content

Recommended Posts

Posted

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

Posted
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.

Posted

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.

Posted

:unsure: 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

post-33-1074876712.gif

Posted

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.)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...