-
IMG and 404
I want to redirect to a script when a IMG resource is not found. I though I would specify in .htaccess:
<Location /icons>
ErrorDocument 404 /mygenerator.php
</Location>
But I can't get it to work. There could be a number of problems.
1. If image is missing, <img src="/icons/whatever.gif"/>, maybe 404 is not generated. I simply don't know, can someone tell me?
2. Maybe <Location> isn't allowed in our .htaccess?
3. Maybe ErrorDocument isn't allowed in our .htaccess?
I don't think I can utilize the existing 404.shtml file, or maybe I could?
Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules