Forum Moderators: phranque

Message Too Old, No Replies

Can I separately redirect the 404 for images from other files?

         

adiulici01

3:23 pm on Jan 12, 2009 (gmt 0)

10+ Year Member



Is there a way so I redirect 404 image errors to 404_image.html and other files to 404.html?

jdMorgan

3:38 pm on Jan 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't literally "redirect" a 404 without changing the 404 server status to a 301 or 302 redirect status, and you should not try to serve an HTML file in response to a request for an image file -- The browser won't be able to handle it, since an HTML file cannot be displayed as an image.

So I should ask, "What are you trying to do?" What is the overall goal here?

Jim