Results 1 to 1 of 1
Feb 21, 2012, 04:28 #1
- Join Date
- Sep 2010
- 0 Post(s)
- 0 Thread(s)
HTAccess - set default image for missing image
I have a folder full of images and when en images is called form that directory and not found I would like the default image to show up.
I have added an HTAccess file with this content:
ErrorDocument 404 default.jpg
And added a default.jpg image in the directory.
I have used this approach successfully on a few other sites but in this instance when I open a page with a missing photo I still get the standard ugly missing image icon. However, if I open that image in a new tab I get a page with the text 'default.jpg' on it.
Anyone got an idea how I can fix it?