View Single Post
Old 08-31-2005, 09:38 PM  
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Quote:
Originally Posted by kektex
Thanks for the help!
Since I was planning to delete the images anyway I found a simple rule for 404`s:
ErrorDocument 404 http://www.domain.com/newfile.jpg

Thanks again!
Not sure how much / what sort of traffic you have on that domain, but that could be a waste of valuable non-image 404 traffic. The following code will redirect image "404s" to a default image, normal "document" 404s will be treated "normally".

RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule \.(gif|jpg|jpeg)$ /your_path_to/new.gif [L]
# the following is for normal 404s
ErrorDocument 404 http://www.your404.com
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote