php - htaccess for default browser behavior with broken images?

398

I've searched everywhere, but I cannot find the answer for this. It is possible that I am looking in the wrong place to begin with. My issue is that when I access an image at: http://admin.iadb.com/php/uploads/users/83.jpg - since that image does not exist, the browsers (tested IE, Firefox and Chrome) redirect to the closest matching image at: http://admin.iadb.com/php/uploads/users/80.jpg

I want to have an option to catch an error with javascript and replace the missing images, but according to the browsers, the image is found. Did anyone ever encounter this issue?

Any help would be highly appreciated.

People are also looking for solutions to the problem: php - MYSQL select student_id if cleared status is equal to one

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.