|
A conundrum for you to solve
03-03-2007, 11:43 AM
|
A conundrum for you to solve
|
Posts: 7
Name: Jan
|
Not sure if this is the right forum, but there doesn't seem to be a more relevant one for my question.
I have puzzled two web designers with this so far, so thought I'd throw it open for someone else to solve (if they want to of course  )
I have a domain name for someone that I've added as a add-on domain to my webspace. I have a few webpages on that domain name and I have set the DNS to point to the directory and the site loads, but the images in the webpages don't?
On my own website I have a link to these webpages and the images do show when using that link.
www.heartbeatgym.com (don't show)
www.lamarinaforum.com/heartbeatgym (do show)
The images are in an image folder within the heartbeat directory.
I have been told it could be a DNS setting problem, but if that were the case, the index page wouldn't load at all, would it?
It has also been suggested that perhaps the images are corrupted, but if that were the case, the images wouldn't show in my domains link to it?
So now I am totally at a loss. I will be contacting my hosting service to see if they can throw light on it on Monday, but in the meantime - if anyone has any ideas or solutions, I'm all ears. 
|
|
|
|
03-03-2007, 11:54 AM
|
Re: A conundrum for you to solve
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
It's not a DNS problem. Your images are relatively coded (meaning you don't have an absolute path e.g. http://www.heartbeatgym.com/images/title.gif for them) so therefore, the domain name would remain the same. You're right. The page wouldn't show.
Your problem is actually a hosting/configuration issue. It looks like you don't have the correct permissions set on the images themselves. I'm not sure on an Apache server (IIS guy here) but I believe you can do this via FTP. If not, your host will.
To see what I'm talking about, click the following link: http://www.heartbeatgym.com/images/title.gif . You get a "Forbidden" error. This means you don't have permission to access the images. For some reason, it doesn't affect the folder...just the images.
|
|
|
|
03-03-2007, 02:53 PM
|
Re: A conundrum for you to solve
|
Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
|
The issue is you are using document relative paths for the images
src="images/imagename"
and your structure is
Code:
--root
|
|_____heartbeatgym
|
|_____images
When using document relative path the browser will look for the image in a folder below the current level, so would expect a structure of
Code:
--root
|
|____heartbeatgym
|
|______images
You need to change the image paths to root relative by adding a slash as a prefix to the path
src=" /images/imagename"
I guess the designers you spoke are more likely to be Dreamweaver/Front Page jockeys
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
03-03-2007, 03:20 PM
|
Re: A conundrum for you to solve
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
In this case, that won't matter, Chris. She could code an absolute path to those images and she'll still hit the permission issue, since the path would actually be the same ( www.heartbeatgym.com/images/the picture in question).
Go here and try to pull an image: http://www.heartbeatgym.com/images/ I tried the title.gif and hit a 403 error.
HOWEVER...coding an absolute path to the images is a good idea, landlady. This would provide the exact path to the image vs. something that may get screwed up as it gets moved around. It won't solve this problem, but it's good practice.
|
|
|
|
03-03-2007, 03:35 PM
|
Re: A conundrum for you to solve
|
Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
|
Yep
Guilty as charged of not looking far enough into the folder structure
I looked at http://www.lamarinaforum.com/images/ without looking at the filenames
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
03-03-2007, 04:28 PM
|
Re: A conundrum for you to solve
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
Relevant Link Exchange forum, 3 days. 
|
|
|
|
03-03-2007, 05:08 PM
|
Re: A conundrum for you to solve
|
Posts: 7
Name: Jan
|
A guy from this site has been trying to help me through the pm system. He already suggested all that you have posted here and I have tried:
Renaming a couple of the image links with a forward slash /images to see if they would show. but it didn't work for the heartbeatgym domain and caused a blank page show in my domain's link to it.
Next I tried changing permissions for the image folder to 777, but that didn't work either and I still got the 403 error when using the images direct address?
Finally, he asked if I had a forwarding address for the site, but I haven't, so he has run out of ideas, hence my post here.
Quote:
|
I guess the designers you spoke are more likely to be Dreamweaver/Front Page jockeys
|
The boy I paid to do this bit of work for me, completely hand coding the pages for me using php and css - (I'm the dreamweaver jockey )
I will have to ask my hosting provider for help, perhaps its a hosting configuration problem they can fix. I do have another sub-domain on this hosting server though, and don't have problems with the images in that, so I am really puzzled about it.
Thanks for taking a look. If anyone else has any ideas, please let me know. If I get any success with my hosting, I will come back and let you know what caused it.
|
|
|
|
03-03-2007, 05:30 PM
|
Re: A conundrum for you to solve
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
There might be another answer, and I say this with a newcomer's knowledge of cPanel (I've used it a few times but that's it).
Does your host offer a control panel? Somewhere that you can log in and mess around with various things? (Adding/editing/deleting email accounts and forwards, site stats, etc.) If so, you may want to check in there for anything labelled "Permissions".
It's absolutely a hosting configuration issue. What's happening is that the browser doesn't have read permissions on the graphic files. The broken images are the symptom that you see as a result...the server says "browser doesn't have permission, so we're not showing the browser anything."
As far as changing the permissions goes, did you change the permissions on the folder or the files themselves? Because the folder itself is fine...it's not the issue. The issue is with the files. That's why http://www.heartbeatgym.com/images works but http://www.heartbeatgym.com/images/title.gif doesn't.
|
|
|
|
03-03-2007, 05:53 PM
|
Re: A conundrum for you to solve
|
Posts: 7
Name: Jan
|
As soon as I posted my last post, I thought, he said the file, not the folder, so I changed permissions on an image (was 644) to 777 and you can now see it on its direct address http://www.lamarinaforum.com/heartbe...mages/gym4.jpg
but not in the page it is linked to http://www.heartbeatgym.com/contact.php
Does this give a clue?
Shouldn't image be 644?
I use cpanel to change my permissions b.t.w.
|
|
|
|
03-05-2007, 07:59 AM
|
Re: A conundrum for you to solve
|
Posts: 7
Name: Jan
|
As promised, an update now that this conundrum has been solved. I emailed my hosting support and they came back with that I should go to the hotlink link I have in my cpanel and add the sub domain heartbeat.com domain name in the list. I did this and voila! images now show on the sub-domain.
|
|
|
|
03-05-2007, 11:10 AM
|
Re: A conundrum for you to solve
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
That doesn't really make a lot of sense. They told you to add heartbeatgym.com as a subdomain???
|
|
|
|
|
« Reply to A conundrum for you to solve
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|