Jump to content

need help displaying imagedeleted.jpg when i delete an image.


turkman

Recommended Posts

No, he's talking about accessing the file directly and displaying an imagedeleted.jpg if it's been deleted.

 

In your image directory, where the actual images are stored, create an .htaccess file and put something like this in it:

 

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_URI} \.(gif|jpg|jpeg|png)$ 
RewriteRule .* path/to/imagedeleted.jpg [L]

 

If you're running your own VPS make sure you enable the mod_rewrite, or it probably is enabled by default anyways. Make sure the path to imagedeleted is in a web accessible folder.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.