Handling 404 Error
Hi,How do i handle 404 Error Effectively ?
I use
ErrorDocument 404 http://www.my-domain.com/404.html
When some one requested a page and if its not available, it will show the 404.html page.
But the problem is when some one requested for a image that is not present in the server from an HTML document, this 404.html is send instead of the requested image.
Since the image is requested from HTML Tag <IMG SRC="http://www.my-domain.com/image.extn">, returning this HTML page is just waste of bandwidth and server resources.
Anyway to prevent this ?
That is return HTML page for web pages (and if possible direct request for Images), return "Image Not Found" image for images not present on the server.
I can't prevent 404 happening 404 Errors as i am running free web hosting.
Regards,
Yujin