I use my site to host a lot of images I use to hotlink on other sites. Generally I keep all images, but sometimes something screws up or gets deleted and the hotlinked image will no longer exist, and leave a blank space which makes people confused.
I'd like to make a 404 image show up in place of the image if it is missing.
Also, it would be preferable if it still threw out a 404 error to the error log.
How would I go about doing this? And I know it is possible because I've seen other sites like Photobucket and Imageshack do it.
My setup is:
The actual images being hotlinked:
FTP: /public_html/images/
URL: http:
//images.example.com/
There is also a folder after that which has images taken with ZScreen
FTP: /public_html/images/ZScreen/
URL: http:
//images.example.com/ZScreen
The 404 image:
FTP: /public_html/images/404.png
URL: http:
//images.example.com/404.png
I have jpg, png and ico files on there.
[edited by: jdMorgan at 1:15 pm (utc) on Mar 21, 2010]
[edit reason] de-linked URLs for clarity [/edit]