Results 1 to 2 of 2
  1. #1

    404 image request showing my on image.

    My image hosting site is currently receiving 300000 404 hits/month from hotlinked images that have been deleted.

    Is there a way to show my own image on every 404 request?


  2. #2
    Join Date
    Jul 2005
    Ann Arbor, MI
    You can make a custom 404 error page and point people to it within an .htaccess file like so:

    ErrorDocument 404 /path/to/your/script.php

    Then, in 'script.php', you could do a check to see if they requested an image, and if so, simply redirect the request to an image of your choice. If they didn't request an image (i.e. a regular 404 error), redirect them to a suitable text-based 404 page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts