Forum Moderators: open

Message Too Old, No Replies

Need help with 404 statistics on my server

         

a_angova

4:58 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



Hello,

may be this is not the right place to write this post but I need your help.
I have designed a site. I have problems with the requests, the statistic shows 404 error - Document not found.

Most of them are the images path.
this is example what I got:
img/rachel/img/links/get.gif - 404
The path used in the html files is ../../img/links/get.gif, the img/rachel directory exists but has other images in it.
Why this wrong path is generated?

Can you please help me to solve this problem, I suppose it is something related with the paths to the images.

Best Regards, Ani

Dijkgraaf

9:50 pm on Sep 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Without knowing the directory structure of your site, and where that page is located it is hard to tell why it is wrong, but you would probably be better of using "/img/links/get.gif" as the path (that is assuming that the image directory is directly below the root).
Probably some browser or bots are getting confused with the relative paths.

us60

12:40 am on Sep 30, 2005 (gmt 0)



img/rachel/img/links/get.gif - 404
The path used in the html files is ../../img/links/get.gif
Hello Ari,

It looks like your image is located at

www.example.org/img/rachel/img/links/get.gif

For your html code to work it must be at

www.example.org/img/rachel/l3/l4/file.html

L4 is the folder holding your html,
The path used in the html files is ../../img/links/get.gif, so

http://localhost/img/rachel/l3/l4/htmlfile.html

is a working example of your code on my localhost server.

The location on my computer for this web site is is in my apache/public_html/ folder. You could make it work on your computer by referencing down to the apache/ or the drive root, but it would then fail on your web site because you cannot reference below the public_html, or whatever folder name is given as your web space root.

Larry

PS:
I don't know if you are working with shtml, and server side includes, but if the code snippet calling the gif is being included in another work, then the code snippet's location must be considered the location of the htmlfile in this example.

us60

1:11 am on Sep 30, 2005 (gmt 0)



One more thing, Ani: First let me apologize for getting your name wrong in the earlier post; I can't read sometimes!

I added a base href, giving the base as
<base href="http://localhost/img/rachel" />
,
and the file turned up missing. So this is one more place to check out. My server error log reported the file does not exist and gave this location:
/Apache/public_html/img/links

Larry

a_angova

7:43 am on Sep 30, 2005 (gmt 0)

10+ Year Member


Hello,

I want to appologize that I did not write the paths correctly.

Ignote my previous explanaition,I made a mistake :(
I have this structure of my site:
root/index.html
root/img/get.gif
root/img/rachel/test.html
root/img/rachel/rachel.gif

I suppose that the relative path causes the problem
root/img/rachel/img/get.gif.
I have this code in the source of the main index.html -<img src="/img/get.gif">, why is this happening, why this path is generated for request.

Best Regards, Ani

a_angova

7:53 am on Sep 30, 2005 (gmt 0)

10+ Year Member



Correction the source is <-<img src="img/get.gif"> in the index.html

a_angova

8:23 am on Oct 2, 2005 (gmt 0)

10+ Year Member



Can anyone please help me.

Best Regards :)

Dijkgraaf

10:47 pm on Oct 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried my suggestion of putting a leading /?

a_angova

11:06 am on Oct 3, 2005 (gmt 0)

10+ Year Member



Yes, it does not help, I also put the absolute names of the images but it does not help too.

Best Regards, Ani