Would it be possible/feasible to redirect to a 'proper' 404 page or some 'stock' or pre-defined message page when someone/somebot tries to retrieve a non-existent image?

A search shouldn't be performed for anything with an image extension; maybe it could function like the 'words to ignore' but be 'requests to ignore'?

(I've just converted my website into drupal, so I'm getting a lot of requests for missing images!)

Cheers

Comments

forngren’s picture

I doesn't quite understand what you are asking for, should one be redirected when he try access a non-existing image?

fronbow’s picture

Sorry for the confusion.

A "search redirect" shouldn't happen for an image. In an ideal situation, a real 404 should be returned.

In the current version, if someone requests an image (directly in their browser), they get redirected to a meaningless/wasted search.
If a search engine is requesting the image, then a 404 should be issued, otherwise the search bot could start penalising your site cos you're redirecting to a text page when it's expecting an image (possibly?)

Does this make better sense?

forngren’s picture

Assigned: Unassigned » forngren

I'm working on bit of a major rewrite of s404 (http://drupal.org/node/70557), I think I can include this feature there.

fronbow’s picture

Cheers :)

larssg’s picture

I hope to add this feature during this weekend. I agree that it could be solved simply with a "requests to ignore"-field where you could enter space-separated strings that, if found, would make the module "abort" and let Drupal show the standard 404-page.

larssg’s picture

forngren: I posted a reply at http://drupal.org/node/70557.

forngren’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Status: Active » Fixed

Fixed in 5.x-series http://drupal.org/node/128884

Anonymous’s picture

Status: Fixed » Closed (fixed)