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