Forum Moderators: coopster
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.
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?
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?