Forum Moderators: coopster

Message Too Old, No Replies

Broken Images

         

internetheaven

2:01 pm on Nov 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Looking for a way to stop broken images showing on my site. Due to the number of images in my /images/ folder and the number of pages there are sometimes errors in naming, uploading that aren't noticed for some time.
Is there any way to get a special "errorimage.gif" to show if that image fails to load. I tried putting:

ErrorDocument 404 h**p://www.example.co.uk/images/errorimage.gif

in the /images/ folder but that didn't work (surprisingly! ;) Anyone know a quick solution? This is for static pages by the way, I already have scripting that can do this on my dynamic pages.

dreamcatcher

7:20 pm on Nov 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you thought about running something like Xenu, which is a free link checker? It can scan your site and alert you to any broken links.

Type Xenu into Google.

internetheaven

11:05 pm on Nov 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It can scan your site and alert you to any broken links.

I've got over 1 million pages to look after so I haven't found a bit of software/online firm that won't charge me a fortune ...

internetheaven

4:37 pm on Nov 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No-one got any tips? Would there be a better forum to ask this one in as it relates to static pages rather than dynamic ones?

jatar_k

10:11 pm on Nov 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have seen this on a few sites, I really have no idea how they do it, didn't really look into it that much.

ergophobe

12:07 am on Dec 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How complicated is the script running this site? I know you have a million pages, but how hard would it be to change the way the images are being served?

For example, if all images are being displayed by a showImage() function or some such thing, you could ad in a check to see whether the image exists and, if not, serve up the default image.

Is that remotely reasonable?

Sanenet

12:22 am on Dec 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...thinking...

Change the default error page to a script that alerts you every time it's called. This will allow you to upload the missing images.

Don't know if it works under Apache, but a missing .gif or .jpg under IIS calls the 404 page.

- NOT SURE, but isn't there a way with .Net to return an image file when you call a .aspx?