Missing Images on redirect of 404 page errors

J

Just a guy

One of the things I was interested in with the new server I just moved
to was the ability to set what happens when someone hits an error on
my web site. I've been with Interland for years and recently moved to
a new server. Through the control panel I could indicate where a
person would end up if they hit a dead page on my site. Obviously we
pointed the 404 error to move the person to the main page of my site.

HOWEVER, when I type in what use to be a valid location on my site,
but is dead now, my index.html page comes up without any images.
Example:

http://www.kcflorist.com/by.occasion/everyday/ed.01.htm

That should put you on my site but where did the images go? Well,
Interland said it is my code and here it there response:

"The source code is not correct. The location specified in the image
source tag should begin with a /

Example: Correct
img src="/01.admin.files/nav.images/world.gif"


Example: Incorrect
img src="01.admin.files/nav.images/world.gif"

Your page using the incorrect example. By correcting the code you will
resolve the error."

OK...I added the / to the images and not too surprising, the images
appeared on my index.html page as dead. Anyone help clarify what I
should or should not be doning, other than asking for Interland for
more help.
 
R

Ronx

The images (and any other external objects such as CSS sheets, JavaScript
files, etc.)should be referenced as either absolute, or root relative.
For example,
an image located at www.example.com/images/world.gif would be referenced as
<img src="http://www.example.com/images/world.gif"> (absolute)
or as
<img src="/images/world.gif"> (root relative)

On your local copy of the site the images will not show unless you are using
a webserver and the site is in the root of the server.
The root folder of a disc based web (as far as root relativity is concerned)
is the root of the hard disc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top